我有一个带有wampserver2.5的windows 10 PC,我想在我的手机上访问它。我可以使用我的手机获得192.168.22.3/phpmyadmin,但在本地主机或192.168.22.3/wordpress这样的其他vhost中则不能。我已经编辑了
# offlineonline tag - don't remove
Require all granted
Require ip 192.168.22当我访问192.168.22.3/wordpress时,手机上还是有403被禁止的。
发布于 2015-12-12 11:48:34
例如,如果您的服务器是192.168.1.254,并且您希望从例如192.168.1.5或像公共IP或免费dns服务这样的任何地方访问,则必须编辑文件c:\wamp\alias\phpmyadmin.conf并进行更改。
<IfDefine APACHE24>
Require local
</IfDefine>在……里面
<IfDefine APACHE24>
Require all granted
</IfDefine>我的档案:
Alias /phpmyadmin "c:/wamp/apps/phpmyadmin4.1.14/"
# to give access to phpmyadmin from outside
# replace the lines
#
# Require local
#
# by
#
# Require all granted
#
<Directory "c:/wamp/apps/phpmyadmin4.1.14/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
<IfDefine APACHE24>
Require all granted
</IfDefine>
<IfDefine !APACHE24>
Order Deny,Allow
Deny from all
Allow from localhost ::1 127.0.0.1
</IfDefine>
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
</Directory>https://stackoverflow.com/questions/33971761
复制相似问题