【问题标题】:vhosts settings in xampp linuxxampp linux中的虚拟主机设置
【发布时间】:2012-08-04 19:05:24
【问题描述】:

有人可以帮我在 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

任何帮助将不胜感激!

提前感谢您!

【问题讨论】:

  • 你检查httpd-xampp.conf了吗?应该有一个部分标记为# # New XAMPP security concept #
  • 是的,我什至试图将其注释掉。消息刚刚改写,结果相同。

标签: linux apache phpmyadmin xampp vhosts


【解决方案1】:

解决了。

刚刚取消注释httpd.conf中的字符串:

# XAMPP 
#Include etc/extra/httpd-vhosts.conf 

【讨论】:

    猜你喜欢
    • 2017-10-21
    • 2014-10-05
    • 2014-05-22
    • 2018-05-16
    • 2021-08-30
    • 2013-02-19
    • 2020-07-29
    • 2013-10-21
    • 2013-11-16
    相关资源
    最近更新 更多