Home > php教程 > php手册 > body text

php wamp 配置虚拟主机

WBOY
Release: 2016-06-06 19:49:23
Original
901 people have browsed it

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>
Copy after login

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

127.0.0.1       www.cup.com

 

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

以下是步骤:

php wamp 配置虚拟主机

新建服务器,本地网络:

php wamp 配置虚拟主机

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

php wamp 配置虚拟主机

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

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

 

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template