Created
October 31, 2011 10:00
-
-
Save Ivoz/1327213 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## errors.log | |
2011/10/31 20:59:09 [error] 14227#0: *34 rewrite or internal redirection cycle while internal redirect to "/index.html", client: 127.0.0.1, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "localhost" | |
## home.conf | |
server { | |
server_name localhost; | |
listen 127.0.0.1:80; | |
index index.html index.php; | |
error_log /home/ivo/www/errors/home.log; | |
access_log /home/ivo/www/access/home.log; | |
location / { | |
root /home/ivo/www/home; | |
try_files $uri $uri/ /index.html; | |
} | |
location /phpmyadmin { | |
root /usr/share/phpmyadmin; | |
try_files $uri $uri/ /index.php; | |
allow 127.0.0.1; | |
deny all; | |
} | |
location ~ \.php$ { | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
include fastcgi_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment