Created
April 21, 2018 23:24
-
-
Save dennisotugo/3d1c55c0d2e4f0c9deb7726d66040b0d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# vim /etc/nginx/sites-available/hng.fun | |
server { | |
listen 80; | |
listen [::]:80; | |
root /var/www/roomhub/public; | |
index index.php index.html index.htm index.nginx-debian.html; | |
server_name roomhub.hng.fun www.roomhub.hng.fun; | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; | |
} | |
location ~ \.php$ { | |
include snippets/fastcgi-php.conf; | |
fastcgi_pass unix:/run/php/php7.1-fpm.sock; | |
} | |
location ~ /\.ht { | |
deny all; | |
} | |
location ~ /.well-known { | |
allow all; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment