Apache under Linux in httpd.conf Configure directory aliases and include methods to introduce a custom file configuration __linux

Source: Internet
Author: User

Requirements: Alias a directory with a long path name in the Web service to facilitate user access

First determine that both the Iptables service and the SELinux are closed ...

First determine that both the Iptables service and the SELinux are closed ...

First determine that both the Iptables service and the SELinux are closed ...

Important thing to say three times ...

———————————————————————————————— I'm a split line ————————————————————————————————————————

Method 1: Write the red box content directly in the httpd.conf, and restart the HTTPD service after the modification.

Method 2: Write red box content in custom configuration file, restart httpd service after modification

Step 1: Edit the Custom configuration file first, save.


Step 2: Then use the include statement in the httpd.conf file to introduce the path to the custom configuration file, and restart the httpd service


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.