Article From:https://segmentfault.com/q/1010000011133010
Question:

Just installed xmapp, want to configure a virtual domain name, Baidu many can not solve, the big God help to see.

Answer 0:

It is probably divided into the following steps.

Answer 1:

In addition to the above points, the landlord can check whether there is a step missing.

  1. winlowerC:\Windows\System32\drivers\etcDirectory modificationhostsFile, add a virtual domain name
  2. Open the Apachehttpd.confConfiguration file, findDocumentRootConfigure the site root directory to your custom root directory, which is more than mine.DocumentRoot "E:/WWW/" ,Next to the following line<Directory "E:/WWW/">It is also replaced here.DocumentThe configuration of the web root directory,
  3. Then againhttpd.confFind it inInclude conf/extra/httpd-vhosts.confThis line, the front#Get rid of the number and open the virtual host configuration
  4. Answer the @ occasional answer,httpd-vhosts.confA virtual site is configured in a file

The following are the screenshots of several steps:

hosts file

httpd.conf Document

httpd.conf http-vhosts.conf

http-vhosts.conf

After a few steps above, it can be basically configured.

Answer 2:

403Error, no read and write permissions
gohttpd.conf
Modify Directory to the following code

<Directory />
    AllowOverride All
    Require all granted
</Directory>

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *