I get Access Forbidden (Error 403) when setting up new alias

后端 未结 7 1879
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-13 02:02

I\'m running windows 7 and recently installed XAMPP to build a dev environment. I\'m not great with the server side of things so I\'m having some problems setting up an alia

7条回答
  •  难免孤独
    2020-12-13 02:20

    I just found the same issue with Aliases on a Windows install of Xampp.

    To solve the 403 error:

    
       Require all granted
    
    
    Alias /dev "C:/Your/Directory/With/No/Trailing/Slash"
    

    The default Xampp set up should be fine with just this. Some people have experienced issues with a deny placed on the root directory so flipping out the directory tag to:

    
       Allow from all
       Require all granted
    
    

    Would help with this but the current version of Xampp (v1.8.1 at the time of writing) doesn't require it.

    As for op's issue with port 80 Xampp includes a handy Netstat button to discover what's using your ports. Fire that off and fix the conflict, I imagine it could have been IIS but can't be sure.

提交回复
热议问题