免费发布网络营销推广信息 推广 热搜: 新纪元期货  科技信息数码  HFRR  仪器 

wdcp设置destoon二级域名和伪静态的方法

   日期:2019-08-28     来源:destoon官网    浏览:353    评论:0     买帖  | 修改  | 投诉  | 刷新
 1、登录wdcp后台-系统管理-文件管理-apache(这里演示的是apache的环境,nginx的类似)如图:

2、点击创建文件-输入文件名-确定如图:

 

3、编辑刚创建的文件-输入以下内容(输入内容红色框处修改为自己的目录或者域名信息),然后保存如图:

  1. 3-1、要么新建一个
  1.  
  1. <VirtualHost *:80>
  2.  documentRoot /home/wwwroot/网站目录名/public_html/company
  3.  ServerName www.网站域名
  4.  ServerAlias *.网站域名
  5.  <IfModule mod_rewrite.c>
  6.      RewriteEngine On
  7.      Errordocument 404 /404.php
  8.      RewriteRule ^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.php
  9.      RewriteRule ^(.*)/([a-z]+)/(.*)\.shtml$ $1/$2/index.php?rewrite=$3
  10.  </IfModule>
  11.  php_admin_value open_basedir /home/wwwroot/网站目录名:/tmp
  12.  </VirtualHost>
  13.  <Directory /home/wwwroot/网站目录名>
  14.      Options FollowSymlinks
  15.      AllowOverride All
  16.      Order allow,deny
  17.      Allow from all
  18.  </Directory>
  19.  
  20.  
  1. 3-2、要么直接改原有的
  1. <VirtualHost *:80>
  2. documentRoot /home/wwwroot/网站目录名/public_html
  3. ServerName 网站域名
  4. ServerAlias www.网站域名
  5. Errordocument 400 /errpage/400.html
  6. Errordocument 403 /errpage/403.html
  7. Errordocument 404 /errpage/404.html
  8. php_admin_value open_basedir /www/web/minzuqiye:/tmp
  9. <IfModule mod_deflate.c>
  10. DeflateCompressionLevel 7
  11. AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
  12. AddOutputFilter DEFLATE css js html htm gif jpg png bmp php
  13. </IfModule>
  14. </VirtualHost>
  15.  
  16. <VirtualHost *:80>
  17.     documentRoot /home/wwwroot/网站目录名/public_html/company/
  18.     ServerName www.网站域名
  19.     ServerAlias *.网站域名
  20.     RewriteEngine On
  21.     Errordocument 404 /404.php
  22.     RewriteRule ^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.php
  23.     RewriteRule ^(.*)/([a-z]+)/(.*)\.shtml$ $1/$2/index.php?rewrite=$3
  24. </VirtualHost>
  25.  
  26. <Directory /home/wwwroot/网站目录名>
  27.     Options FollowSymlinks
  28.     AllowOverride All
  29.     Order allow,deny
  30.     Allow from all
  31. </Directory>    
  32.  
  33.  

  1. 4、如果WAP绑定了2级域名如(m.dtmuban.com)切环境为nginxapache双环境的服务器,主环境是 apache
  1. nginx规则里面的 m.dtmuban.com.conf(手机版规则改成如下,以为强制转移到apache规则
  1. server {
  2.         listen       80;
  3.         root /home/wwwroot/网站目录/public_html/mobile;
  4.         server_name m.dtmuban.com;
  5.         index  index.html index.php index.htm;
  6.         error_page  400 /errpage/400.html;
  7.         error_page  403 /errpage/403.html;
  8.         error_page  404 /errpage/404.html;
  9.         error_page  405 /errpage/405.html;
  10.         error_page  503 /errpage/503.html;
  11.         location ~ \.php$ {
  12.                 proxy_pass https://127.0.0.1:88;
  13.                 include naproxy.conf;
  14.         }
  15.         location ~ /\.ht {
  16.                 deny  all;
  17.         }
  18.         location / {
  19.                 try_files $uri @apache;
  20.         }
  21.         location @apache {
  22.                  internal;
  23.                  proxy_pass https://127.0.0.1:88;
  24.                  include naproxy.conf;
  25.         }
  26. } 

 

5、最后系统管理-服务重启-web重启,到这里就完成了,destoon网站的设置就不说了,自己按要求设置好就可以了

 
打赏
 
更多>同类资讯
0相关评论

推荐图文
推荐资讯
点击排行
网站首页  |  关于我们  |  联系方式  |  使用协议  |  版权隐私  |  网站地图  |  排名推广  |  广告服务  |  积分换礼  |  网站留言  |  RSS订阅  |  违规举报
 
展开