Skip to content

Instantly share code, notes, and snippets.

@ariews
Created November 10, 2015 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ariews/508ef5c6fb217b765276 to your computer and use it in GitHub Desktop.
Save ariews/508ef5c6fb217b765276 to your computer and use it in GitHub Desktop.
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$ {
...
}
}
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