Wrap text
|
|
server {
listen 80;
server_name localhost bounga.org www.bounga.org;
access_log /var/log/nginx/bounga.access.log;
error_log /var/log/nginx/bounga.error.log;
error_page 404 /var/log/nginx/index.php;
location / {
root /home/nico/public_html/blog;
index index.html index.htm index.php;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/nico/public_html/blog$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
}
|