注册
登录
关注:
官网首页
阿里云8折
论坛
wdCDN系统
智能DNS软件
搜索
私人消息 (0)
公共消息 (0)
论坛任务 (0)
系统消息 (0)
好友消息 (0)
帖子消息 (0)
WDlinux官方论坛
»
» 呼叫:andy15703166版版 怎么设置企业二级域名呢?
无标题文档
wdCP系统
(
介绍
,
功能特性
,
运行环境
,
安装说明
,
演示
,
常见问题
,
使用教程
)
wdCDN系统
(
介绍
,
功能特性
,
运行环境
,
安装说明
,
演示
,
常见问题
,
使用手册
)
wdOS系统
(
介绍
,
功能特性
,
运行环境
,
安装说明
,
演示
,
常见问题
,
使用教程
)
wdDNS系统
(
介绍
,
功能特性
,
运行环境
,
安装说明
,
演示
,
常见问题
,
使用手册
)
注册 发贴 提问 回复-必看必看
wddns免费智能 DNS
开通
本地或虚拟机使 用wdcp
一键包在mysql编 译时"卡住"
AI导航网AI应用网站大全
wdcp官方技术支持/服务
阿里云8折优惠券
无敌云
腾讯云优惠中,现注册更有260代金额券赠送
返回列表
发帖
andy15703166
发短消息
加为好友
andy15703166
当前离线
UID
3770
帖子
68
精华
0
积分
389
阅读权限
100
在线时间
96 小时
注册时间
2012-3-21
最后登录
2016-3-30
版主
1
#
跳转到
»
发表于 2012-8-12 07:48
|
显示全部帖子
提问三步曲:
提问先看教程/FAQ索引(
wdcp
,
wdcp_v3
,
一键包
)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等
温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的
本帖最后由 andy15703166 于 2012-8-12 07:49 编辑
给你看一下我的配置文件吧:
我在WDCP后台以store(company)子目录新建了一个站点
下载
(24.97 KB)
2012-8-12 07:42
然后我的主站的apache配置文件内容为:
<VirtualHost *:88>
DocumentRoot /www/web/hcgw/public_html
ServerName hcgw.cn
ServerAlias www.hcgw.cn www.52hc.cn www.cn9888.com
ErrorDocument 400 /errpage/400.html
ErrorDocument 403 /errpage/403.html
ErrorDocument 404 /errpage/404.html
ErrorDocument 405 /errpage/405.html
php_admin_value open_basedir /www/web/hcgw:/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>
<Directory /www/web/hcgw/public_html>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
复制代码
我的主站的nginx配置文件为:
server {
listen 80;
server_name hcgw.cn www.hcgw.cn www.52hc.cn www.cn9888.com;
root /www/web/hcgw/public_html;
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;
location ~ \.php$ {
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
location / {
try_files $uri @apache;
}
location @apache {
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
}
复制代码
我的store(company)二级域名的站点apahce配置文件为
<VirtualHost *:88>
DocumentRoot /www/web/hcgw/public_html/store/
ServerName hcgw.cn
ServerAlias *.hcgw.cn
ErrorDocument 400 /errpage/400.html
ErrorDocument 403 /errpage/403.html
ErrorDocument 404 /errpage/404.html
ErrorDocument 405 /errpage/405.html
php_admin_value open_basedir /www/web/hcgw/public_html:/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>
<Directory /www/web/hcgw/public_html/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
复制代码
我的store(company)二级域名的站点nginx配置文件为
server {
listen 80;
server_name *.hcgw.cn;
root /www/web/hcgw/public_html/store;
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;
location ~ \.php$ {
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
location / {
try_files $uri @apache;
}
location @apache {
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
}
复制代码
最后,其他关于公司频道绑定二级域名方法,参考这个设置:
会员绑定二级域名和顶级域名的方法
http://bbs.site4tong.com/forum.php?mod=viewthread&tid=1297&fromuid=1
apache伪静态规则一定要看这个:
DT4.0 apache下伪静态官方规则修正!
http://bbs.site4tong.com/forum.php?mod=viewthread&tid=1168&fromuid=1
云建站
要省钱,上汇诚:
汇诚网
AI导航网,AI网站大全,AI工具大全,AI软件大全,AI工具集合,AI编程,AI绘画,AI写作,AI视频生成,AI对话聊天等,尽在aiaiV.cn
TOP
返回列表
wdCP V3|Linux服务器/云主机/虚拟主机管理系统
我的Linux|wdlinux
ai|大模型|大数据
开源精选
wdCP V3|Linux服务器/云主机/虚拟主机管理系统
wddns|智能DNS系统|免费智能DNS解析
lamp|lnmp|lnamp|一键安装包
wdCP V2|linux下免费的服务器/虚拟主机管理系统
wdcdn系统|CDN缓存加速管理系统
wdOS|CentOS精简版|CentOS定制版
区块链技术|智能合约|区块链开发
wdlinux学堂|wdOS知识库|linux知识库|教程|文档
站务管理
站务管理
[收藏此主题]
[关注此主题的新回复]
[通过 QQ、MSN 分享给朋友]