On 12/06/07, philguillard <philguillard@xxxxxxxxx> wrote:
Since the first virtual host is the default for whatever url is pointing to my server i configured a virtual host without directives and that's the origin of my logs: <VirtualHost *:80> ServerName www.phil.com DocumentRoot /usr/local/apache2/htdocs/dummy RewriteEngine On </VirtualHost>
There's no need for ServerName here, and the RewriteEngine On is totally redundant. There's no harm in setting the ServerName (the main server's value will be inherited) but it doesn't buy you anything useful.
Is there a way to do this hum.. more seriously ?
No, that's pretty much the usual approach. You could use your default vhost to Redirect requests to a recognised one; that way whatever names/ip addresses are used to get to your server will be canonicalised. -- noodl --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx