This article is a mirror article of machine translation, please click here to jump to the original article.

View: 14105|Reply: 1

[Web] Apache configures multiple domain access and error logs

[Copy link]
Posted on 7/8/2015 6:21:54 PM | | | |
I am configuring it locally, on the Windows systemOpen httpd.conf and insert it at the end


The * sign can be replaced with your IP, 80 is the listening port.

In the picture above, I have configured two domain names, namely mvc.com and test.com
DocumentRoot is the website directory corresponding to the domain name
ServerName is Hostname, which can have a port number, is mainly used to create redirect URLs
ServerAlias isAlias the ServerName, and you can also access this web host through the domain name in Alias
ErrorLog is the error log file for that host
Customlog for the host's accessLog files


Open the C:WINDOWSsystem32driversetchosts file
Add the following two lines


In this way, you can access the D:/wamp/mvc directory through mvc.com~~~


This thing seems to have been recorded a few months ago, but it has not been written... I haven't updated my blog either





Previous:[apache] AH00436: No installed service named
Next:Whoever takes a Ruijie account to use, these two days are so boring at school
 Landlord| Posted on 7/8/2015 6:22:51 PM |


This is a rendering after configuration
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com