![](/img/trans.png)
[英]Can't find XAMPP's httpd-xampp.conf file on MacOs Mojave
[英]httpd-xampp.conf: Allow Access to an external system using Host Name instead of IP Address?
部署了一個服務器以在內部網絡上使用,我可以在其中使用localhost或從具有靜態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>
在httpd-xampp.conf
使用Require host
(與Apache 2.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>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.