有人可以帮我在 XAMPP、Linuxmint 中配置虚拟主机。
Xampp 启动正确,我看到 xampp 橙色启动页面.. 没关系。我在' /opt/lampp/etc/extra '目录中打开了vhosts文件并添加了以下代码
<VirtualHost 127.0.0.2:80>
DocumentRoot "/opt/lampp/htdocs/test/public_html"
ServerName test.dev
</VirtualHost>
还打开了“ etc/hosts ”并添加了这个:
127.0.0.2 test.dev
重新启动 XAMPP...
但是结果,当我去 test.dev 或 127.0.0.2 是相同的橙色启动页.. 所以它显示 127.0.0.1..
还有 http://localhost/phpmyadmin/
说:
Access forbidden!
New XAMPP security concept:
Access to the requested object is only available from the local network.
This setting can be configured in the file "httpd-xampp.conf".
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Apache/2.4.2 (Unix) OpenSSL/1.0.1c PHP/5.4.4
任何帮助将不胜感激!
先感谢您!