记事本打开修改 X:/AppServ/Apache2.2/conf/httpd.conf 文件
在文件的第一行添加如下代码:
Listen 8080
#监听8080端口
DocumentRoot "D:/ShengshiNet"
#虚拟目录物理路径
<VirtualHost 192.168.1.10:8080>
ServerAdmin abc@abc.com
DocumentRoot "D:/ShengshiNet"
ServerName abc@abc.com:8080
ErrorLog logs/host.foolog
TransferLog logs/host.foolog
</VirtualHost>
<Directory "D:/ShengshiNet">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
在文件的第一行添加如下代码:
Listen 8080
#监听8080端口
DocumentRoot "D:/ShengshiNet"
#虚拟目录物理路径
<VirtualHost 192.168.1.10:8080>
ServerAdmin abc@abc.com
DocumentRoot "D:/ShengshiNet"
ServerName abc@abc.com:8080
ErrorLog logs/host.foolog
TransferLog logs/host.foolog
</VirtualHost>
<Directory "D:/ShengshiNet">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>