Created
April 18, 2012 12:35
-
-
Save gnurag/2413321 to your computer and use it in GitHub Desktop.
Setting up UserDir on Nginx
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
# userdir simulation | |
location ~ /~([^/]+)($|/.*)$ { | |
alias /home/$1/public_html$2; | |
error_page 404 = @404; | |
autoindex on; | |
} | |
location @404 { | |
return 404; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment