Apache Virtual Host Configuration

Source: Internet
Author: User

1, modify httpd.conf

Locate the Apache installation directory conf\httpd.conf file, remove the following two lines of text before the # number as follows: Enable Apache virtual host function LoadModule Vhost_alias_module modules/mod_vhost_ Alias.so

Make httpd-vhosts.conf file work Include Conf/extra/httpd-vhosts.con

F if multi-port, need to increase Listen such as: Listen Listen 8888

2, modify httpd-vhosts.conf find Apache installation directory under conf\extra\httpd-vhosts.conf file Namevirutalhost *:80 Specify a port for an IP is which host, keep the default, the new version of Apache has removed this


<virtualhost *:80>
DocumentRoot "e:/guoguo/"

<directory "E:/guoguo" >

AllowOverride All
Order Allow,deny
Allow from all




127.0.0.1 guoguo.com

Apache Virtual Host Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.