欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

apache虛擬機配置步驟和修改訪問端口的方法(虛擬機端口映射)

 更新時間:2014年02月14日 09:07:26   作者:  
這篇文章主要介紹了apache虛擬機配置步驟和修改訪問端口的方法(虛擬機端口映射),需要的朋友可以參考下

一、添加服務(wù)端口
在文件Apache\conf\httpd.conf中,
1、找到 Listen 80  在它的下面加一行  Listen 8001(端口可以自己重置)。
2、找到

復(fù)制代碼 代碼如下:

#LoadModule rewrite_module modules/mod_rewrite.so

模塊,去掉前面的#號。

3、因為用到虛擬主機,所以找到

復(fù)制代碼 代碼如下:

#Include conf/extra/httpd-vhosts.conf

去掉前面的#號。

二、添加服務(wù)虛擬配置

在文件Apache\conf\extra\httpd-vhosts.conf 文件中,修改里面相應(yīng)的配置:

復(fù)制代碼 代碼如下:

NameVirtualHost *:80
<VirtualHost *:80>
    ServerAdmin webmaster@d.localhost
    DocumentRoot "D:/wamp/www/Lee"
    ServerName www.lee.com
    ServerAlias www.dummy-host.localhost
    ErrorLog "logs/dummy-host.localhost-error.log"
    CustomLog "logs/dummy-host.localhost-access.log" common
</VirtualHost>

NameVirtualHost *:8001
<VirtualHost *:8001>
    ServerAdmin webmaster@d.localhost
    DocumentRoot "D:/wamp/www/LiMei"
    ServerName www.limei.com
    ErrorLog "logs/dummy-host2.localhost-error.log"
    CustomLog "logs/dummy-host2.localhost-access.log" common
</VirtualHost>



三、打開C:\WINDOWS\system32\drivers\etc\hosts

輸入如下內(nèi)容:

復(fù)制代碼 代碼如下:

127.0.0.1       www.dbjr.com.cn
127.0.0.1       bbs.jb51.net

保存文件。

相關(guān)文章

最新評論