提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等
温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的
[求助] 为什么后台生成的配置文件301跳转和开启htttps跳转不起作用
为什么后台生成的配置文件301跳转和开启htttps跳转不起作用
用的是最新版的后台- 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;
- }
- }
复制代码 |