问答详情
源自:2-5 WAMPServer自拟定端口号

localhost:8080能访问,但改回去80就不行了

localhost:8080能访问,但改回去80就提示

Forbidden

You don't have permission to access /textceshi.php on this server.


提问者:moon_2007 2015-01-20 11:32

个回答

  • Nicko_Ch
    2015-01-21 16:35:47

    <VirtualHost *:80> 

        ServerName 访问域名 如:www.baidu.com

        DocumentRoot "访问文件路径 如:D:/wamp/www/blog/" 

        <Directory "访问文件路径 如:D:/wamp/www/blog/"> 

        Options FollowSymLinks IncludesNOEXEC 

        DirectoryIndex index.htm index.html default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml 

        AllowOverride All 

        Order Deny,Allow 

        Allow from all 

        </Directory> 

    </VirtualHost>


  • Nicko_Ch
    2015-01-20 17:18:00

    Order deny,allow
    Deny from all
    Satisfy all


    Apache配置加上以上语句就可以了.!