Created
September 2, 2011 02:20
-
-
Save xeoncross/1187793 to your computer and use it in GitHub Desktop.
Route all subdomains to their own folders
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
| server { | |
| listen 80; | |
| server_name ~^(.+)\.frameworks\.loc$; | |
| set $file_path $1; | |
| root /home/_______/www/frameworks/$file_path/public; | |
| index index.html index.php; | |
| include /etc/nginx/defaults.conf; | |
| } | |
| # make sure to create matching entries in /etc/hosts! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment