you don't have permission to access [custom alias] on this server

后端 未结 6 1227
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-14 15:00

can anyone help with a following issue: I am using wamp to run projects in my chrome browser. after adding a newAlias which points to my project directory c:/dev/myProject I am

6条回答
  •  感动是毒
    2021-02-14 15:45

    I've updated WAMP from 2.2.22 to 2.4.9 and found that new aliases didn't work (same error message as yours).

    Checking the default aliases like phpmyadmin, I've found this:

    Alias /phpmyadmin "c:/wamp/apps/phpmyadmin4.1.14/"
    
    # to give access to phpmyadmin from outside 
    # replace the lines
    #
    # Require local
    #
    # by
    #
    # Require all granted
    #
    
    
       Options Indexes FollowSymLinks MultiViews
       AllowOverride all
      
        Require local
      
      
        Order Deny,Allow
          Deny from all
          Allow from localhost ::1 127.0.0.1
        
      php_admin_value upload_max_filesize 128M
      php_admin_value post_max_size 128M
      php_admin_value max_execution_time 360
      php_admin_value max_input_time 360
    
    

    If you see the contents of the file you'll notice the and conditionals. So I've changed my alias .conf file from:

    Alias /svn "c:/work/website-svn/" 
    
    
        Options Indexes FollowSymLinks MultiViews
    
        AllowOverride all
        Order allow,deny
        Allow from all
    
    
    

    to:

    Alias /svn "c:/work/website-svn/" 
    
    
        Options Indexes FollowSymLinks MultiViews
    
        Require local
    
    
    

    That solved my problem, I hope it solves yours.

提交回复
热议问题