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

来源:2-5 WAMPServer自拟定端口号

moon_2007

2015-01-20 11:32

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

Forbidden

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


写回答 关注

2回答

  • 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配置加上以上语句就可以了.!

    moon_2...

    <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all Satisfy all </Directory> 是这样的吗,我加上了,重启了改成80还是那个提示

    2015-01-21 10:11:44

    共 1 条回复 >

PHP入门篇

PHP入门教程轻松学习,行业大牛帮您快速掌握PHP编程基础知识。

455589 学习 · 6303 问题

查看课程

相似问题