在使用 AJP 代理到 Tomcat 时,我无法在我的 Windows 计算机上创建子域。这是我的 httpd.conf 文件中的内容:
<VirtualHost *:80>
ServerName subdomain.localhost
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / ajp://localhost:8009/folder/
ProxyPassReverse / ajp://localhost:8009/folder/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
子域已添加到 `c:\windows\system32\drivers\etc\hosts
127.0.0.1 本地主机
127.0.0.1 子域.本地主机
当我去的时候,http://localhost
我直接去代理。当我去的时候,我也会去http://subdomain.localhost
代理。我该怎么做才能使子域仅转到代理而常规转到 Apache?