码迷,mamicode.com
首页 > 数据库 > 详细

wdcp v3 Forbidden :You don't have permission to access /phpmyadmin on this server

时间:2016-05-13 20:44:59      阅读:460      评论:0      收藏:0      [点我收藏+]

标签:

First edit the file /www/wdlinux/apache/conf/vhost/00000.default.conf

and add the additional line to the directory settings:

<Directory /www/web/default/>
order deny,allow
deny from all
allow from 127.0.0.1
allow from 192.168.1.0/15
</Directory>

If you wanted to allow access to everybody then you could just change it to:

<Directory /www/web/default/>
order allow,deny
allow from all
</Directory>

Allow in all sections of the file.

A restart (service httpd restart) is enough to pick this up.

这样都可以访问,

如果想只在服务器里面能访问,可以如下配置:

<Directory /www/web/default/>
Options Indexes FollowSymLinks MultiViews

AllowOverride all

Order Deny,Allow

deny from all

allow from 127.0.0.1

allow from 133.99.108.60 #133.99.108.60为服务器ip

</Directory>

 

wdcp v3 Forbidden :You don't have permission to access /phpmyadmin on this server

标签:

原文地址:http://www.cnblogs.com/yuanxiaoping_21cn_com/p/5490960.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!