We have the same problem but in conjunction with ssl. Here is my config.
Any help is appreciated. I restarted several times. Where exactly should I Paste
The authentication part?
[quote]
server {
listen 80;
server_name localhost;
return 301 https://$host$request_uri;
}
server {
location /geheim1 {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/pma_pass;
}
### To listen port on HTTPS/ port 443
listen 443 ssl;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;
ssl_certificate /etc/nginx/sslcerts/ghost.crt;
ssl_certificate_key /etc/nginx/sslcerts/ghost.key;
location / {
root /etc/nginx/html;
index index.html index.htm;
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
[/quote]
Any help is appreciated. I restarted several times. Where exactly should I Paste
The authentication part?
[quote]
server {
listen 80;
server_name localhost;
return 301 https://$host$request_uri;
}
server {
location /geheim1 {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/pma_pass;
}
### To listen port on HTTPS/ port 443
listen 443 ssl;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;
ssl_certificate /etc/nginx/sslcerts/ghost.crt;
ssl_certificate_key /etc/nginx/sslcerts/ghost.key;
location / {
root /etc/nginx/html;
index index.html index.htm;
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
[/quote]