Created
May 10, 2019 06:50
-
-
Save pwaldhauer/5daa1aee31c16a6fc22eebdf0096ac17 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; | |
listen [::]:80; | |
server_name contao-sync-source.nerdlichter.com; | |
root /var/www/app/web; | |
auth_basic "Restricted"; | |
auth_basic_user_file /etc/nginx/app.htpasswd; | |
location / { | |
index app.php index.html; | |
try_files $uri $uri/ /app.php/$args; | |
} | |
location ~ \.php$ { | |
include snippets/fastcgi-php.conf; | |
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment