[原创]DedeCMS仿站教程2:AppServ虚拟站点配置教程

1.Appsrv的Apache本地调试虚拟站点设置,1个IP不同端口,需要在httpd.conf里设置Listen 端口 设置不同的端口;
2.然后打开httpd.conf的LoadModule vhost_alias_module modules/mod_vhost_alias.so 和 # Virtual hosts
Include conf/extra/httpd-vhosts.conf
3.设置/appsrv/apachex.x/conf/extra/httpd-vhosts.conf,加入虚拟站点,和目录权限设置,如下:

ServerAdmin webmaster@dummy-host.x
DocumentRoot “C:/AppServ/www/phpMyAdmin”
ServerName phpMyAdmin
ServerAlias phpMyAdmin.com

Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all


ServerAdmin webmaster@dummy-host.x
DocumentRoot “C:/AppServ/www/xueshi”
ServerName xueshi
ServerAlias xueshi.com

Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all


4.开始菜单,appsrv-control server as service–apache restart 重启apache服务

赞(0) 打赏
分享到: 更多 (0)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏