Home > Backend Development > PHP Tutorial > wamp multi-site configuration, wamp site configuration_PHP tutorial

wamp multi-site configuration, wamp site configuration_PHP tutorial

WBOY
Release: 2016-07-13 16:54:05
Original
955 people have browsed it

Wamp multi-site configuration, wamp site configuration

There are many online methods, I specially recorded them, friends who need them can just take them by themselves.

Files that need to be modified: httpd.conf/httpd-vhosts.conf/hosts

Corresponding path:

httpd.conf:wampbinapacheApache2.2.21conf

httpd-vhosts.conf:wampbinapacheApache2.2.21confextra

hosts:cWindowsSystem32driversetc

Modification process:

1. Open httpd.conf, about line 466: #Include conf/extra/httpd-info.conf, delete #;

2, still httpd.conf, about 188 lines:


Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all

changed to:


Options FollowSymLinks
AllowOverride None
Order deny,allow
#Deny from all
Allow from all
all

3. Open httpd-vhosts.conf and add the following code in the bottom blank space (

Modify the wamp installation path by yourself):

ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "
f:/wamp/www" ServerName localhost
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common



ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "
f:/wamp/www2" ServerName
www2.com ServerAlias ​​www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog " logs/dummy-host.example.com-access.log" common

4. The last step: open the hosts file and add the following code below the last line:

127.0.0.1 localhost

127.0.0.1 www2.com

After restarting wamp, localhost and www2.com can be developed separately, and multi-site configuration is successful.

http://www.bkjia.com/PHPjc/1051882.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1051882.htmlTechArticlewamp multi-site configuration, there are many ways to configure wamp sites online, I specially recorded it, friends who need it can take it by themselves good. Files that need to be modified: httpd.conf / httpd-vhosts.conf /...
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template