Heim  >  Artikel  >  php教程  >  php wamp 配置虚拟主机

php wamp 配置虚拟主机

WBOY
WBOYOriginal
2016-06-06 19:49:23871Durchsuche

apeach 配置; 还有是:E:\wamp\bin\apache\Apache2.4.4\conf 目录下有个 http.conf文件中,有一个需要取消注释, # Virtual hosts Include conf/extra/httpd-vhosts.conf 需要去掉注释; 在E:\wamp\bin\apache\Apache2.4.4\conf\extra目录下,有个httpd-vho

 

apeach  配置;

还有是:E:\wamp\bin\apache\Apache2.4.4\conf 目录下有个 http.conf文件中,有一个需要取消注释,

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

需要去掉注释;

在E:\wamp\bin\apache\Apache2.4.4\conf\extra目录下,有个 httpd-vhosts.conf文件中,需要添加以下代码:

NameVirtualHost *:80<br><virtualhost><span>
    ServerAdmin webrx@</span>126.<span>com
    DocumentRoot </span>"E:\work"<span>
    ServerName www</span>.cup.<span>com
    DirectoryIndex index</span>.html index.<span>php
    </span><directory><span>
        Options Indexes FollowSymLinks
        AllowOverride All
        Order allow</span>,<span>deny
        Allow from all
   </span></directory>
</virtualhost>

window host 文件配置;在文件夹 C:\WINDOWS\system32\drivers\etc下 host 文件中:

127.0.0.1       www.cup.com

 

在Dreamweaver 文件中,需要新建站点,mywork ..... 

以下是步骤:

php wamp 配置虚拟主机

新建服务器,本地网络:

php wamp 配置虚拟主机

服务器不要忘记 把测试勾上。

php wamp 配置虚拟主机

保存,这样站点就建好了。

在该站点下 ,可以写自己的代码了。

 

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn