Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ray-moncada/b00d8e56e1ece5a7b25b3d0230d67605 to your computer and use it in GitHub Desktop.
Save ray-moncada/b00d8e56e1ece5a7b25b3d0230d67605 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name localhost test.x;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
index index.html index.htm index.php;
charset utf-8;
#access_log logs/host.access.log main;
location / {
root html;
try_files $uri $uri/ /index.php?$query_string;
}
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9074;
fastcgi_index index.php;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment