这里有XAMPP问题。我在本地运行一个dev env和一个测试服务器。DHCP/DNS/test。存在于同一台服务器上,请求带有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>不管怎样,我不确定我的问题到底出在哪里。有人有什么建议吗?
发布于 2014-08-30 10:55:03
所以,像往常一样,我在发布给大众后不久就发现了这一点:
查看此处->configuring virtual host and localhost redirecting to the xampp folder
我所有的请求都是首先命中"localhost“,所以通过更改为”localhost“,无论它在哪台机器上,都将始终在本地路由。
Internet +1 / Me 0
https://stackoverflow.com/questions/25578521
复制相似问题