Created
November 10, 2015 06:44
-
-
Save ariews/508ef5c6fb217b765276 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
server { | |
listen 80; | |
index index.php; | |
server_name october.cms; | |
# root directory | |
root /path/to/octobercms; | |
location / { | |
try_files $uri $uri/ /index.php$is_args$args; | |
} | |
location ~ \.php$ { | |
... | |
} | |
} |
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; | |
index index.php; | |
server_name new.project; | |
# root directory | |
root /path/to/new.project/public; | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; | |
} | |
location /uploads/ { | |
# root directory october cms | |
root /path/to/octobercms; | |
} | |
# FOR PHP FILES | |
location ~* \.php$ { | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment