我在Windows机器上使用了XAMPP,并且将这个代码添加到了httpd.conf文件中:
<VirtualHost *:80> ServerName 23.23.23.23.23 Redirect 403 / ErrorDocument 403 "No" DocumentRoot C:/xampp/htdocs UseCanonicalName Off UserDir disabled </VirtualHost>
我尝试重新启动apache时出现此错误:
11:15:02 AM [Apache] Error: Apache shutdown unexpectedly. 11:15:02 AM [Apache] This may be due to a blocked port, missing dependencies, 11:15:02 AM [Apache] improper privileges, a crash, or a shutdown by another method. 11:15:02 AM [Apache] Press the Logs button to view error logs and check 11:15:02 AM [Apache] the Windows Event Viewer for more clues 11:15:02 AM [Apache] If you need more help, copy and post this 11:15:02 AM [Apache] entire log window on the forums
如果我从httpd.conf文件中删除代码,它将开始。 这里发生了什么事?