分享好友教程首页教程搜索频道列表

wdcp设置二级域名和伪静态

2016-08-04 23:1721151
+关注32
核心提示:1、登录wdcp后台-系统管理-文件管理-apache(这里演示的是apache的环境,nginx的类...

1、登录wdcp后台-系统管理-文件管理-apache(这里演示的是apache的环境,nginx的类似)如图:

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


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

    3-1、要么新建一个

    
<VirtualHost *:80>
 documentRoot /home/wwwroot/网站目录名/public_html/company
 ServerName www.网站域名
 ServerAlias *.网站域名
 <IfModule mod_rewrite.c>
     RewriteEngine On
     Errordocument 404 /404.php
     RewriteRule ^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.php
     RewriteRule ^(.*)/([a-z]+)/(.*)\.shtml$ $1/$2/index.php?rewrite=$3
 </IfModule>
 php_admin_value open_basedir /home/wwwroot/网站目录名:/tmp
 </VirtualHost>
 <Directory /home/wwwroot/网站目录名>
     Options FollowSymlinks
     AllowOverride All
     Order allow,deny
     Allow from all
 </Directory>

       3-2、要么直接改原有的
<VirtualHost *:80>
documentRoot /home/wwwroot/网站目录名/public_html
ServerName 网站域名
ServerAlias www.网站域名
Errordocument 400 /errpage/400.html
Errordocument 403 /errpage/403.html
Errordocument 404 /errpage/404.html
php_admin_value open_basedir /www/web/minzuqiye:/tmp
<IfModule mod_deflate.c>
DeflateCompressionLevel 7
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
AddOutputFilter DEFLATE css js html htm gif jpg png bmp php
</IfModule>
</VirtualHost>

<VirtualHost *:80>
    documentRoot /home/wwwroot/网站目录名/public_html/company/
    ServerName www.网站域名
    ServerAlias *.网站域名
    RewriteEngine On
    Errordocument 404 /404.php
    RewriteRule ^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.php
    RewriteRule ^(.*)/([a-z]+)/(.*)\.shtml$ $1/$2/index.php?rewrite=$3
</VirtualHost>

<Directory /home/wwwroot/网站目录名>
    Options FollowSymlinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>    


4、如果WAP绑定了2级域名如(m.dtmuban.com)切环境为nginx,apache双环境的服务器,主环境是 apache的 
nginx规则里面的  m.dtmuban.com.conf(手机版规则改成如下,以为强制转移到apache规则
 
server {
        listen       80;
        root /home/wwwroot/网站目录/public_html/mobile;
        server_name m.dtmuban.com;
        index  index.html index.php index.htm;
        error_page  400 /errpage/400.html;
        error_page  403 /errpage/403.html;
        error_page  404 /errpage/404.html;
        error_page  405 /errpage/405.html;
        error_page  503 /errpage/503.html;
        location ~ \.php$ {
                proxy_pass https://127.0.0.1:88;
                include naproxy.conf;
        }
        location ~ /\.ht {
                deny  all;
        }
        location / {
                try_files $uri @apache;
        }
        location @apache {
                 internal;
                 proxy_pass https://127.0.0.1:88;
                 include naproxy.conf;
        }
} 


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

整理员:小黑
免责声明:凡注明来源本网的所有作品,均为本网合法拥有版权或有权使用的作品,欢迎转载,注明出处。非本网作品均来自互联网,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。
生成海报
相关评论1
最新其他更多

DESTOON v10.04网站管理系统20251117更新

    [修复]待办事项未显示银行和商铺认证[修复]后台添加信息日志无法记录ID[修复]微信公众号收到图片无法显示[修复]微信公众号收到语音视频无法播放[修复]荣誉资质不能传图[修复]展会内容页展会首页链接错误[修复]自定义

destoon destoon更新动态2025-11-17

DESTOON v10.03网站管理系统20251105更新

    [修复]模块无法新增[修复]模型复制部分文件生成错误[修复]后台检查更新后菜单点击无效[修复]后台文件管理文件图标显示错误[修复]部分文件语言包未加载完整[修复]短信和邮件看不到发送记录[新增]会员昵称长度范围设置

destoon destoon更新动态2025-11-05

DESTOON v10.02网站管理系统20251103更新

    更新项目[修复]广告链接不跳转[修复]后台在线更新需要重新登录[修复]数据导入功能报错[修复]后台发布动态表情图标过大[修复]新建模板提示不支持编辑[修复]隐私号功能未显示[修复]分类属性搜索无结果[修复]会员升级出

destoon destoon更新动态2025-11-04

DESTOON v10.01网站管理系统20251027更新

    [修复]公司主页提示未开通[修复]公司分类列表为空[修复]文章选择第1张图片做为缩略图出现错误[修复]公司分表字段错误[修复]短信发送最多5次[修复]更新扩展报错[修复]分类属性不显示[修复]手机版站内交谈无法点开[修

destoon destoon更新动态2025-10-27

修复 DESTOON10.0 资讯文章无法设置内容第几张图片为标题图的方案

    在DESTOON 10.0 第一版本中,有用户反馈从文章中选择第1张图片做为缩略图出现错误,返回Array([0]=https://网址/file/upload/202510/21/172234461.jpg)经过搜索函数,发现问题在module/destoon/post.func.php 文件里

小黑 destoon程序2025-10-22

下一篇
我来说两句
1