Skip to content

Instantly share code, notes, and snippets.

@pwaldhauer
Created May 10, 2019 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pwaldhauer/5daa1aee31c16a6fc22eebdf0096ac17 to your computer and use it in GitHub Desktop.
Save pwaldhauer/5daa1aee31c16a6fc22eebdf0096ac17 to your computer and use it in GitHub Desktop.
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