如何设置Apache以重叠虚拟主机通配符服务器别名?
我有一个Apache / wamp的子域的开发设置,一切工作正常,需要与“常规”设置和“xyz”设置,但我必须改变configuration,并重新启动服务器,每当我需要一个不同的设置。 有没有办法让两个设置同时工作? 我正在寻找答案,允许我同时访问这两个设置,而无需更改我用来访问它们的url或端口。 这是我的常规设置 <VirtualHost *:9090> ServerName localhost.com ServerAlias *.localhost.com VirtualDocumentRoot u:\wamp\www\subdomains\%1 <directory "u:\wamp\www\subdomains\%1"> Options Indexes FollowSymLinks AllowOverride all Order Deny,Allow Deny from all Allow from all </directory> </VirtualHost> 这是我的次要(xyz)设置 <VirtualHost *:9090> ServerName localhost.com ServerAlias *.xyz.localhost.com VirtualDocumentRoot u:\wamp\www\subdomains\xyz <directory "u:\wamp\www\subdomains\xyz"> Options Indexes FollowSymLinks AllowOverride all Order Deny,Allow Deny from all Allow from all […]