无标题文档
wdCP系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdCDN系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
wdOS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdDNS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
注册 发贴 提问 回复-必看必看 wddns免费智能 DNS 开通 本地或虚拟机使 用wdcp 一键包在mysql编 译时"卡住"
【300G高防】双线 无视攻击 wdcp官方技术支持/服务 阿里云8折优惠券 无敌云 腾讯云优惠中,现注册更有260代金额券赠送
返回列表 发帖
提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等

温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的

[已解决] 新建站点 添加301转向 不能用,以前的可以

本帖最后由 bluegua 于 2011-11-21 17:21 编辑

原来是我的域名解析有问题~
  1. server {
  2. listen 80;
  3. server_name www.aitpc.com;
  4. root /www/web/aitpc/public_html;
  5. index index.html index.php index.htm;
  6. error_page 404 /errpage/404.html;
  7. location ~ \.php$ {
  8. fastcgi_pass 127.0.0.1:9000;
  9. fastcgi_index index.php;
  10. include fcgi.conf;
  11. }
  12. location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
  13. expires 1d;
  14. }
  15. location ~ .*\.(js|css)?$ {
  16. expires 12h;
  17. }
  18. }
  19. server {
  20. server_name aitpc.com;
  21. rewrite ^/(.*)$ http://www.aitpc.com$1 permanent;
  22. }
复制代码

这是另一个,却可以用
  1. server {
  2.         listen       80;
  3. server_name www.htcwp.com;
  4.         root /www/web/weizhi/public_html;
  5.         index  index.html index.php index.htm;
  6.         error_page  404 /errpage/404.html;
  7.         location ~ \.php$ {
  8.                 fastcgi_pass   127.0.0.1:9000;
  9.                 fastcgi_index  index.php;
  10.                 include fcgi.conf;
  11.         }
  12.         location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
  13.                 expires      1d;
  14.         }
  15.         location ~ .*\.(js|css)?$ {
  16.                 expires      12h;
  17.         }
  18. }
  19. server {
  20.     server_name htcwp.com;
  21.     rewrite ^/(.*)$ http://www.htcwp.com$1 permanent;
  22. }        
复制代码

TOP

返回列表