XAMPP (Mac) Virtual host showing 403

后端 未结 6 1901
清酒与你
清酒与你 2020-12-09 18:06

I keep getting Access Forbidden Error 403 when I try running my installation of XAMPP on my MAC

I am running the project outside of /Applications/XAMPP/htdocs<

6条回答
  •  时光说笑
    2020-12-09 19:03

    I got this error because I forgot to set my 'DocumentRoot' url and my 'Directory' url the same.

    #dl local
    
        ServerName dl.local
        DocumentRoot "/Users/myuser/dl_live"               <<< ----- This URL has to match
                        <<< ----- this URL
            Options Indexes FollowSymLinks IncludesNoExec
            AllowOverride All
            Require all granted
        
        ErrorLog "logs/dl.local_error_log"
    
    

    If you do this you may see an error like this in your error log file:

    [Tue Feb 03 13:50:26.189944 2015] [authz_core:error] [pid 25254] [client 127.0.0.1:54841] AH01630: client denied by server configuration: /Users/myUsername/path/to_local/virtual_host/
    

提交回复
热议问题