永久黄网站色视频免费直播,yy6080三理论日本中文,亚洲无码免费在线观看视频,欧美日韩精品一区二区在线播放
標(biāo)題:
[求助]
為什么后臺(tái)生成的配置文件301跳轉(zhuǎn)和開(kāi)啟htttps跳轉(zhuǎn)不起作用
[打印本頁(yè)]
作者:
hrxiaofei
時(shí)間:
2018-4-7 14:16
標(biāo)題:
為什么后臺(tái)生成的配置文件301跳轉(zhuǎn)和開(kāi)啟htttps跳轉(zhuǎn)不起作用
為什么后臺(tái)生成的配置文件301跳轉(zhuǎn)和開(kāi)啟htttps跳轉(zhuǎn)不起作用
用的是最新版的后臺(tái)
server {
listen 80;
root /www/web/test/public_html;
server_name test.com www.test.com;
rewrite ^(.*)$ https://$host$1 permanent;
index index.html index.php index.htm;
rewrite ^/(.*)$ http://www.test.com/$1 permanent;
error_page 400 /errpage/400.html;
error_page 403 /errpage/403.html;
error_page 404 /errpage/404.html;
error_page 503 /errpage/503.html;
location ~ \.php$ {
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
location ~ /\.ht {
deny all;
}
location / {
try_files $uri @apache;
}
location @apache {
internal;
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
}
server {
listen 443;
root /www/web/test/public_html;
ssl on;
ssl_certificate cert/test.com.pem;
ssl_certificate_key cert/test.com.key;
ssl_prefer_server_ciphers on;
ssl_session_timeout 10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
server_name test.com www.test.com;
index index.html index.php index.htm;
rewrite ^/(.*)$ http://www.test.com/$1 permanent;
error_page 400 /errpage/400.html;
error_page 403 /errpage/403.html;
error_page 404 /errpage/404.html;
error_page 503 /errpage/503.html;
location ~ \.php$ {
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
location ~ /\.ht {
deny all;
}
location / {
try_files $uri @apache;
}
location @apache {
internal;
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
}
復(fù)制代碼
歡迎光臨 WDlinux官方論壇 (http://www.fsowen.com/bbs/)
Powered by Discuz! 7.2