Virtual Host Configuration Learning notes

Source: Internet
Author: User

1. Can be configured directly in the httpd.conf , or you can use the httpd-vhosts.conf configuration in the extra , It is recommended to use the second method.

2. Turn on the vhost.conf configuration in httpd.conf

3. Find the configuration file

4.

In order to use domain-based virtual host technology, we need to specify the IP and port of the server to receive the service.

This is done through the namevirtualhost command.

Namevirtualhost *:80

where * represents all IP addresses, if it is a specific IP,you can write on this IP, but it is recommended to use *, refers to the port.

Next, to configure the specific domain name separately, through the VirtualHost instruction segment, its parameters must and namevirtualhost

and must contain ServerName and documentroot in the instruction segment.

5. pay attention to the best use/, because Linux only recognize/and windows/,\ are recognized

6. Configure the hosts file to specify The correspondence between the domain name and DNS.

7. Write in the host file

8. Due to permissions issues

9 then you first configure the J:\wamp\apache\htdocs\phpMyAdmin

will be successful.

10. Next I'll write down the resolution of the permission issue

Virtual Host Configuration Learning notes

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.