Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of setting up apache virtual directory

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Apache Profile:

Apache HTTP Server (Apache for short) is an open source web server from the Apache Software Foundation that can run on most computer operating systems and is one of the most popular Web server-side software due to its multi-platform and security. It is fast, reliable, and can be extended via simple APIs to compile interpreters such as Perl/Python into the server.

Apache HTTP Server is a modular server derived from NCSA httpd Server, which has been modified many times to become the world's number one Web server software.

The specific methods are as follows:

1. Open the virtual directory configuration file httpd-vhosts.conf

File path: \wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf

Configure the following:

# Virtual hosts# Include conf/extra/httpd-vhosts.conf

Amend to read

# Virtual hostsInclude conf/extra/httpd-vhosts.conf

2. Set virtual directory accessible

File path: \wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf

Configure the following:

AllowOverride none Require all denied

Amend to read

AllowOverride none

3. Add virtual directories

File path: \wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf

add Virtual Directory

ServerAdmin webmaster@web.shop.com DocumentRoot "D:/_HelloWorld/01_MyProjects/06_PHP/01_Web/Product/Source/Shop" ServerName web.shop.com ErrorLog "logs/web.shop.com-error.log" CustomLog "logs/web.shop.com-access.log" common

4. Restart Apache

The above is how to set up apache virtual directory details, more please pay attention to other related articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report