Under Windows Apache configuration domain name

Source: Internet
Author: User

1. Open httpd.conf

Find the "Include conf/extra/httpd-vhosts.conf" line, cancel the previous # # comment and save

2. Modify the httpd-vhosts.conf file

Go to the Conf/extra folder in the Apache installation directory, open the httpd-vhosts.conf file,

2.1, you can clear the contents of the file

2.2, you can also all the contents of the file Add # Note (2.1 and 2.2 two to select the execution)

2.3. Include in the document

Namevirtualhost *:<virtualhost *: >"E:\wamp64\www\ApiOnline  "127.0. 0.1</virtualhost><directory/> from allsatisfyall </ Directory>

This assumes that the bound domain name is 127.0.0.1, if it is deployed on the server, and the requested domain name is already bound to the IP of the server, then the 127.0.0.1 can be changed to the relevant domain name, such as www.example.com.

127.0.0.1 corresponding parsing path is "E:\wamp64\www\ApiOnline", where Apionline is the PHP project name

2.4. Restart Apache

Attention:

Assuming PHP engineer CodeIgniter framework, the project name is Apionline, then the original project in application/config/config.php

$config [' base_url '] = ' http://127.0.0.1/ApiOnline ';

After the domain name is bound, you can modify it to:

$config [' base_url '] = ' http://127.0.0.1 ';

Apache will automatically match 127.0.0.1 to "E:\wamp64\www\ApiOnline"

Under Windows Apache configuration domain name

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.