Created
November 22, 2011 22:08
-
-
Save anveo/1387191 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 { | |
server_name www.volumeone.org; | |
rewrite ^(.*) http://volumeone.org$1 permanent; | |
} | |
server { | |
listen 80; | |
server_name staging.volumeone.org; | |
server_tokens off; | |
root /home/volumeone/sites/staging.volumeone.org/web; | |
access_log /var/log/nginx/volumeone.org/staging.access_log; | |
error_log /var/log/nginx/volumeone.org/staging.error_log; | |
# pass the PHP scripts to php-fpm on local file socket | |
location ~ ^/(index|frontend|frontend_dev|backend|backend_dev)\.php(/|$) { | |
include fastcgi_params; | |
fastcgi_split_path_info ^(.+\.php)(/.*)$; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_param HTTPS off; | |
fastcgi_pass unix:/dev/shm/php-fastcgi.socket; | |
} | |
location / { | |
index index.php; | |
try_files $uri $uri.html /index.php?$args; | |
} | |
#location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { | |
# expires max; | |
# log_not_found off; | |
# gzip on; | |
#} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment