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服务