Skip to content

Instantly share code, notes, and snippets.

@ariews
Created November 10, 2015 13:12
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/69dc8f88f7fe2d52f802 to your computer and use it in GitHub Desktop.
Save ariews/69dc8f88f7fe2d52f802 to your computer and use it in GitHub Desktop.
server {
listen 80;
index index.php;
server_name new.project;
# root directory
# normal: /path/to/new.project/public
root /path/to/new.project;
# set url
location /public/ {
try_files $uri $uri/ /public/index.php?$query_string;
}
location /uploads/ {
root /path/to/octobercms;
}
location ~* \.php$ {
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment