httpd-vhosts.conf设置

httpd-vhosts.conf文件地址:D:\APMServ5.2.6\Apache\conf\extra

<VirtualHost *:80>
ServerName www.mybug.cn
DocumentRoot "D:/APMServ5.2.6/www/htdocs/mantis"
<Directory "D:/APMServ5.2.6/www/htdocs/mantis">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml
AllowOverride None
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>


设置完成后需要修改hosts文件,加上IP www.mybug.cn


局域网内其他人访问,需要在本地修改hosts文件,加上IP www.mybug.cn

然后就可以正常访问IP www.mybug.cn了

你可能感兴趣的:(httpd-vhosts.conf设置)