Re: Attempt to serve DocumentRoot directory ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux