Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tayfunoziserikan/921643 to your computer and use it in GitHub Desktop.
Save tayfunoziserikan/921643 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name kebab-project.com www.kebab-project.com;
root /var/www/vhosts/kebab-project.com/httpdocs/web;
index index.html index.htm index.php;
error_log /var/www/vhosts/kebab-project.com/logs/error.log;
access_log /var/www/vhosts/kebab-project.com/logs/access.log main;
try_files $uri $uri/ @notfile;
location @notfile {
rewrite ^(.*) /index.php last;
}
location ~ \.php(.*)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment