服务器部署在内部网络上,我可以在内部网络中使用本地主机或具有静态IP的10.192.5.78访问PHPmyAdmin。
我想要访问我的笔记本电脑上的页面,它没有静态IP,但有NSM作为hostname。
目前在httpd-xampp.conf中配置的代码如下。我尝试使用主机名代替IP地址,但MySQL返回错误。
Alias /phpmyadmin "D:/xampp/phpMyAdmin/"
<Directory "D:/xampp/phpMyAdmin">
AllowOverride AuthConfig
Require local
Require ip 10.192.5.78
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>发布于 2017-06-21 15:09:53
在httpd-xampp.conf中使用Require host (带有Apache2.4.25)
Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
<Directory "C:/xampp/phpMyAdmin">
AllowOverride AuthConfig
Require local
Require host host_name.domain_name
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>https://stackoverflow.com/questions/44073817
复制相似问题