Created
November 11, 2011 04:30
-
-
Save aaroncm/1357198 to your computer and use it in GitHub Desktop.
nginx config for php and apache-style homedir
This file contains 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
location ~ /~([^/]+)(/.*.php)$ { | |
alias /home/$1/public_html$2; | |
try_files "" =404; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
include fastcgi_params; | |
} | |
location ~ /~([^/]+)($|/.*)$ { | |
alias /home/$1/public_html$2; | |
autoindex on; | |
} | |
location ~ \.php$ { | |
try_files $uri =404; | |
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