Preliminary use of Apache

Source: Internet
Author: User

1. virtual directory:

That is, save the developed website in a specific space and configure it in the configuration file. This allows you to access the website in this folder through Apache.

(1) configuration path

<Ifmodule dir_module> # This is equivalent to the welcome interface. If not, you need to create a file to display directoryindex index.html index.htm index. PHP # Your Site alias/songjs "E:/the_third_grade/apache_workspace" <directory e: \ the_third_grade \ apache_workspace> order allow, deny allow from all </directory> </ifmodule>

 

(2) log out of the main directory: Add '#'

· In this case, you can use: http: // localhost/songjs/... path under the actual directory.

2. VM configuration: mainly because of domain name issues, users can enter www.songjs.com to access the previous localhost page.

3.

Preliminary use of Apache

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.