server { listen 80; server_name sternwarte.rexfue.de; root /var/www/html/sternwarte; index index.php index.html; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; location / { try_files $uri $uri/ /index.php?$args; } location /intern { auth_basic "Sternwarte Intern"; auth_basic_user_file /etc/nginx/.htpasswd; } location ~ \.php$ { include fastcgi_params; fastcgi_pass php:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } location ~ /\.ht { deny all; } }