Skip to content

Instantly share code, notes, and snippets.

@ferdousulhaque
Created July 18, 2018 12:18
Show Gist options
  • Save ferdousulhaque/ad3695f0d7335368863bf3962cfc66aa to your computer and use it in GitHub Desktop.
Save ferdousulhaque/ad3695f0d7335368863bf3962cfc66aa to your computer and use it in GitHub Desktop.
server {
listen 80;
root /home/ferdous/web;
index index.php index.html;
autoindex on;
location /{
try_files $uri $uri/ /index.php;
}
location /flightphp/ {
index index.php index.html index.htm;
try_files $uri $uri/ /flightphp/index.php$is_args$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment