Apache adds custom vhost directories, and other configurations

1. Find httpd.conf under Apache, find the default Include conf/vhosts.conf in this file,

add Include conf/self_vhosts/*.conf after this

my configuration:

Include conf/vhosts.conf
Include conf/self_vhosts/*.conf


2. Apache adds 404 to jump to the home page and adds the following in the vhost file

Main code: ErrorDocument 404 http://www.test.com

<VirtualHost *:80>
    DocumentRoot "E:/web/bj_tour_en/A206/"
    ServerName www.test.com
    ErrorDocument 404 http://www.test.com
</VirtualHost>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325943829&siteId=291194637