apache virtual host and “Dynamic” Domains
问题 I have a java application responding multiple domains and uses, for each domain, a specific apache virtual host. This because Apache is faster than tomcat, to serve static resources. The need is to do that at runtime, without restart apache configuration. To perform this action I'm using VirtualDocumentRoot directive, as described below: AddType text/html .html .shtml AddOutputFilter INCLUDES .html .shtml NameVirtualHost *:80 UseCanonicalName Off <VirtualHost *:80> ServerName domain.com