【问题标题】:Xampp vhost keeps appending /xampp/Xampp vhost 不断附加 /xampp/
【发布时间】:2014-10-24 01:41:05
【问题描述】:

这里有 XAMPP 问题。我在本地运行开发环境和测试服务器。 DHCP/DNS/测试。存在于同一台服务器上并与 dev 请求。路由到我的本地机器。问题:每当我请求 dev.* url 时,它都会正确路由到我的本地计算机,但 /xampp/ 会附加到 url 并且我得到 xampp 默认登录页面。

***vhost example***
<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "C:\Domains\com.example"
        <Directory "C:\Domains\com.example">
            Require all granted
        </Directory>
    ServerName dev.example.com ***2 server names so i dont modify when i commit to server
    ServerName test.example.com
    ErrorLog "logs/dummy-host.example.com-error.log"
    CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>

无论如何,我不确定我的问题到底出在哪里……有人有什么建议吗?

【问题讨论】:

    标签: xampp virtualhost


    【解决方案1】:

    所以,像往常一样,我在向群众发帖后不久就想通了:D。

    看这里->configuring virtual host and localhost redirecting to the xampp folder

    我所有的请求都首先点击“localhost”,所以通过更改为 不管它在哪台机器上,它总是会在本地路由。

    互联网 +1 / 我 0

    【讨论】:

      猜你喜欢
      • 2016-11-18
      • 2015-01-01
      • 2011-12-07
      • 2018-11-11
      • 2014-04-06
      • 2021-01-10
      • 2011-02-09
      • 2017-07-29
      • 2018-11-12
      相关资源
      最近更新 更多