Just installed xmapp, want to configure a virtual domain name, Baidu many can not solve, the big God help to see.
It is probably divided into the following steps.
In addition to the above points, the landlord can check whether there is a step missing.
hostsFile, add a virtual domain name
- Open the Apache
httpd.confConfiguration file, find
DocumentRootConfigure 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,
- Then again
httpd.confFind it in
Include conf/extra/httpd-vhosts.confThis line, the front
#Get rid of the number and open the virtual host configuration
- Answer the @ occasional answer,
httpd-vhosts.confA virtual site is configured in a file
The following are the screenshots of several steps:
After a few steps above, it can be basically configured.
403Error, no read and write permissions
Modify Directory to the following code
<Directory /> AllowOverride All Require all granted </Directory>