W
W
WbdT2015-12-04 21:42:07
PHP
WbdT, 2015-12-04 21:42:07

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

1 answer(s)
M
mihelsonkk, 2015-12-05
@mihelsonkk

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 question

Ask a Question

731 491 924 answers to any question