2017-01-15 41 views
0

我使用XAMPP在Windows機器上直接IP接入和我已經添加了這個代碼到httpd.conf文件:試圖阻止與Apache

<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文件中刪除代碼,它將開始。這裏發生了什麼事?

+0

任何幫助,將不勝感激。 –

回答

0

從config中刪除UserDir disabled將解決您的問題。