Welcome! Log In Create A New Profile

Advanced

nginx debian 6 64bits

July 11, 2013 03:02PM
default.conf

server {


if ($host !~* ^www\.) {
rewrite ^(.*)$ http://www.$host$1 permanent;
}

listen 80;
server_name exemple.org;
index index.html index.htm index.php;
root /home/home;

location / {
root /home/malucos;
index index.html index.htm index.php;

}
location /status {
stub_status on;
access_log off;
}
location /home/min {
rewrite ^/(.*\.(css|js))$ /home/min/index.php?f=$1&debug=0 break;
}


client_max_body_size 120M;
error_page 404 /404.html;

#location /doc/ {
#alias /usr/share/doc/;
#autoindex on;
#allow 127.0.0.1;
#allow ::1;
#deny all;
#}
location /phpmyadmin {
root /usr/share/;
index index.php index.html index.htm;
location ~ ^/phpmyadmin/(.+\.php)$ {
try_files $uri =404;
root /usr/share/;
fastcgi_pass 127.0.0.1:9999;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;

}

location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /usr/share/;
}

}

location /phpMyAdmin {
rewrite ^/* /phpmyadmin last;
}
# redirect server error pages to the static page /50x.html
#
#error_page 500 502 503 504 /50x.html;
location = /404.html {
root /home/malucos;
}


# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://www.malucos-share.org;
#}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {

fastcgi_pass 127.0.0.1:9999;

fastcgi_index index.php;
include /etc/nginx/fastcgi_params;

fastcgi_param SCRIPT_FILENAME /home/malucos$fastcgi_script_name;

fastcgi_param SERVER_NAME $http_host;



}

# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}

}

erro
502 bad gateway
SubjectAuthorPosted

nginx debian 6 64bits

dumorimJuly 11, 2013 03:02PM

Re: nginx debian 6 64bits

Maxim DouninJuly 12, 2013 05:52AM

Re: nginx debian 6 64bits

dumorimJuly 12, 2013 12:43PM

Re: nginx debian 6 64bits

Host DLJuly 12, 2013 12:46PM

Re: nginx debian 6 64bits

dumorimJuly 12, 2013 12:50PM

Re: nginx debian 6 64bits

Host DLJuly 12, 2013 12:54PM

Re: nginx debian 6 64bits

dumorimJuly 12, 2013 01:08PM

Re: nginx debian 6 64bits

dumorimJuly 12, 2013 01:22PM

Re: nginx debian 6 64bits

dumorimJuly 12, 2013 03:10PM

Re: nginx debian 6 64bits

dumorimJuly 12, 2013 03:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 47
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 156 on March 20, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready