www.sony.com.cn/productclub wamp configure virtual host

WBOY
Release: 2016-07-29 08:40:17
Original
2657 people have browsed it

1. First open the apache configuration file httpd.conf, and remove the # in front of #Include conf/extra/httpd-vhosts.conf to enable the virtual host function

2. Configure localhost first to avoid problems when accessing localhost later. , my wamp project root directory is D:wampwww. Add the following information to the configuration file under Apache's Apache/Conf/EXTRA httpd-vhosts.conf;

& lt; virtualHost *: 80 & gt;
DocumentRoot "d:/wamp/www"
serverName wwwwww w.xxxxxxx. com & lt; Directory "d:/wamp/www" & gt;
Options Indexes FollowSymlinks
Alowover None
Order Allow, DENY
Allow from All
& LT;/Directory & GT. ; T & lt;/virtualhost & gt;

3, modify C: Open the host file under WindowsSystem32driversetc with Notepad and add 127.0.0.1 to the last line

www.xxxxxxxx.com , restart apache. The above introduces the virtual host configuration of www.sony.com.cn/productclub wamp, including the content of www.sony.com.cn/productclub. I hope it will be helpful to friends who are interested in PHP tutorials.

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