2017-01-15 7 views
0

との直接IPアクセスをブロックしようとすると、私はWindowsマシン上でXAMPPを使用していると私はhttpd.confファイルにこのコードを追加しました:私は、Apacheを再起動しようとすると、私はこのエラーを取得するapacheの

<VirtualHost *:80> 
    ServerName 23.23.23.23.23 
    Redirect 403/
    ErrorDocument 403 "No" 
    DocumentRoot C:/xampp/htdocs 
    UseCanonicalName Off 
    UserDir disabled 
</VirtualHost> 

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を削除すると問題が解決します。