Answer the question
In order to leave comments, you need to log in
PMA why is there a permanent redirect?
config
server {
listen 80;
return 301 https://example.com$request_uri;
}
server {
listen 443 ssl spdy;
listen [::]:443 ssl spdy;
server_name example.com;
#SSL
#Root
root /usr/share/nginx/html;
index index.php index.html index.htm;
#Errors
#PHP
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTPS on;
include fastcgi_params;
}
}
Answer the question
In order to leave comments, you need to log in
nginx.org/en/docs/http/ngx_http_rewrite_module.htm...
In the first block server is not specified - server_name
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question