Created
July 18, 2018 12:18
-
-
Save ferdousulhaque/ad3695f0d7335368863bf3962cfc66aa 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; | |
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