xampp linux中的虚拟主机设置
问题描述:
有人可以帮我配置XAMPP,Linuxmint中的虚拟主机。xampp linux中的虚拟主机设置
Xampp开始正确,我看到xampp橙色splash-page ..没关系。 我在 '的/ opt/LAMPP的/ etc /额外' 目录打开虚拟主机文件,并添加以下代码
<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是相同的橙色splashpage ..所以它显示了127.0.0.1 ..
而且HTTP://本地主机/ 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
任何帮助将感激!
预先感谢您!
答
已解决。
只是注释掉httpd.conf中的字符串:
# XAMPP
#Include etc/extra/httpd-vhosts.conf
你检查在httpd-xampp.conf'?有一个部分标有'# #新的XAMPP安全概念 #' – 2012-08-07 18:07:48
是的,我甚至试图评论它。该消息刚刚改写,结果相同。 – Maksym 2012-08-07 19:58:46