Created
September 1, 2015 17:41
-
-
Save deathbearbrown/e7263fb082e6347d2c81 to your computer and use it in GitHub Desktop.
This file contains 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 auth.dev; | |
root /mnt/src; | |
location / { | |
index index.php index.html; | |
try_files $uri $uri/ /index.php?$request_uri; | |
} | |
# Directives to send expires headers and turn off 404 error logging. | |
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { | |
expires 24h; | |
log_not_found off; | |
} | |
# this prevents hidden files (beginning with a period) from being served | |
location ~ /\. { | |
access_log off; | |
log_not_found off; | |
deny all; | |
} | |
location ^~ /test/ { | |
index index.php index.html; | |
try_files $uri $uri/ /index.php?$request_uri; | |
fastcgi_param TESTMODE true; | |
} | |
location ~ \.php$ { | |
client_max_body_size 25M; | |
try_files $uri =404; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
include fastcgi_params; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_pass php; | |
#fastcgi_param TESTMODE true; | |
} | |
error_log /mnt/logs/error.log; | |
access_log /mnt/logs/access.log; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment