Doubts about the Apache2.2 server configuration multi-site

Source: Internet
Author: User
Questions about configuring multiple sites for Apache2.2 servers
That's it, my local machine, there are several independent websites,
I now want to implement input: HTTP://127.0.0.1/WEB1, open Web site, http://127.0.0.1/web2, open Web2 website,
In Apache2.2, how to configure?

Online to find the next, are some of the multi-domain AH configuration What, these simply useless, such as the following:

DocumentRoot E:\www\discuz\bbs
ServerName bbs.xxxx.com

Second virtual host, specific parameters to modify their own

DocumentRoot e:\www\site//directory where the second virtual host is located
ServerName www.xxxx.com//Domain name


It is not easy to understand, you configure two domain names, you can open two local sites?
Apparently not, all of them went to the Internet.
I would like to ask you prawns, I exactly how to configure to achieve:
Input: http://127.0.0.1/web1, open Web site, http://127.0.0.1/web2, open web2 site, the function of it?
Just contact with PHP, it is troubled by this problem ....

------Solution--------------------
It is the configuration of the virtual host, you obviously do not need, just put the BBS and site directory into the root directory.
------Solution--------------------
OK. 127.0.0.1 is pointing to the Apache root directory, to implement other drive-letter access, please refer to the above notation. You can also search the "Configure Apache Virtual directory" method on the Web.
------Solution--------------------
In Httpd.conf last added


Alias/web1 "D:/www/web1"
Alias/web2 "E:/WWW/WEB2"
  • 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.