Apache Build Virtual Host

Source: Internet
Author: User

This article refers to http://www.dreamdu.com/webbuild/(a post on website building and production tutorials)

Using and configuring Apache

After installing Apache, we can find the Htdocs folder in the Apache installation directory, this folder is the path of the default Web site, students can save the page file in this folder, modify the view.

Or you can create a new virtual directory:

Using notepad++ (or Notepad) to open the D:/apache/conf/httpd.conf file, add a piece of code at the end

#http://www.dreamdu.com
Listen 8088
<virtualhost *:8088>
DocumentRoot "/applications/xampp/xamppfiles/htdocs/hale/"
</VirtualHost>

The above code is to add a point to the/applications/xampp/xamppfiles/htdocs/hale/of the virtual host, and we use 8088 port, this port can be arbitrarily specified, but do not repeat with other programs, can not use 80 port, Because IIS uses port 80. Save the file. Restart Apache.

Place your files or Web pages in the/applications/xampp/xamppfiles/htdocs/hale/directory.

Enter the URL in the browser http://localhost:8088/

Apache Build Virtual Host

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.