search
Homephp教程php手册解析wamp5下虚拟机配置文档

本篇文章是对wamp5下虚拟机配置文档的方法进行了详细的分析介绍,需要的朋友参考下

Wamp下,香港服务器租用,虚拟机配置分为三个步骤,实例如下:
1.修改Hosts文件
C:\WINDOWS\system32\drivers\etc\Hosts
127.0.0.1 dz1.test.com

2.编辑wamp\bin\apache\Apache2.2.11\conf\extra\httpd-vhosts.conf文件,在文件底部加入以下代码

ServerName dz1.test.com
ServerAlias dz1.test.com
DocumentRoot "e:/wamp/www/dz1"

另外加上这句以后,如果没有下面这句的记得加上,不然打localhost打不开最好再加上

ServerName localhost
ServerAlias localhost
DocumentRoot "D:/wamp/www"

3.编辑E:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf文件,在文件底部加入以下代码
注:不加此代码会报403错误
打开配置文件httpd.conf,并去掉#Include 0conf/extra/httpd-vhosts.conf前面的#号!!

Options Indexes FollowSymLinks
AllowOverride all
Order Allow,Deny
Allow from all

重启Apache,然后测试dz1.test.com,就可以了。
。。。。。。。。。。。。。。。。
注意红色加粗的部分,美国服务器,必须相同,且文件存在

,美国空间
Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools