Configuring Apache Virtual machine Solutions under Linux

Source: Internet
Author: User
Configuring Apache virtual machines under Linux
First I install Apache under Linux in the way of source code, I want to configure a virtual machine like under Windows with a different domain name can be located in the site root directory. People who have done it should be able to understand that the following is my configuration under Linux:



Depending on the configuration above, I change the path of the DocumentRoot and then with the IP is 127.0.0.1来 access, then you can navigate to a different site root, and then my URL rewrite also played a role, but when I was configured by the ServerName that is koma.com to access, not access to the local and is to visit a site to the outside network up, do not know what can be implemented with their own configuration of the ServerName to achieve local access? Would you please help me ...?

It can be implemented under windows by modifying the Hosts file, but I don't know what to do with Linux ....

Share to:


------Solution--------------------
Linux can also be modified under the Hosts file, but there is no use, you test it yourself.
------Solution--------------------
You say the visit is where the access, only you configure the host machine to access the effective OH.
------Solution--------------------


DocumentRoot "E:/appserv/www/web"
ServerName koma.com
Errorlog "Logs/error.log"

------Solution--------------------
Http://www.baidu.com/s?wd=linux+hosts
Linux Modify Hosts
------Solution--------------------
Linux can also be configured under the hosts, directly vi/etc/hosts add the corresponding IP and virtual domain name can be
  • Related Article

    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.