Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Nginx Virtual Host Configuration for
server {
listen 80;
#access_log /usr/share/nginx/html/example/logs/access.log;
#error_log /usr/share/nginx/html/example/logs/error.log;
location / {
root /usr/share/nginx/html/example;
index index.html index.htm index.php;
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/example$fastcgi_scr$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.