Well, if you use separate log files for the main server and the virtual host, you will be able to see which of the servers actually serve the request. I suspect that at least requests for :8080 are served by the main server instead of being served by the virtual host, and that this is the reason why your VirtualDocumentRoot does not kick in for such requests. I did some tests myself and I did not manage to make it work unless using <ip-address>:*. That said, since you also have a DirectoryIndex in the main server, I do not really see why the index page is not served from the main server document root... Are you sure http://www2n.unil.ch:8080/index.html is not served from your browser cache? Did you check your logs? -ascs -----Original Message----- From: Isabelle Moullet [mailto:Isabelle.Moullet@xxxxxxx] Sent: Monday, August 29, 2005 9:33 AM To: users@xxxxxxxxxxxxxxxx Subject: Re: [users@httpd] mass virtual hosting I already tried that.. No way.. same problem. Axel-Stéphane SMORGRAV a écrit : > That is because you do not have any NameVirtualHost definition for 130.223.27.40:8080. However 130.223.27.40 does match 130.223.27.40:80. > > What you need to do is to replace > NameVirtualHost 130.223.27.40 > > with > > NameVirtualHost 130.223.27.40:* > > and replace > > <VirtualHost 130.223.27.40> > > with > > <VirtualHost 130.223.27.40:*> > > -ascs > > -----Original Message----- > From: Isabelle Moullet [mailto:Isabelle.Moullet@xxxxxxx] > Sent: Tuesday, August 23, 2005 10:42 AM > To: users@xxxxxxxxxxxxxxxx > Subject: [users@httpd] mass virtual hosting > > Bonjour, > > I am trying to install mass virtual hosting with Apache 2.0.53. > I have the the following instructions in my conf file: > # > LoadModule vhost_alias_module modules/mod_vhost_alias.so > > UseCanonicalName Off > NameVirtualHost 130.223.27.40 > DirectoryIndex index.html index.html.var > > <VirtualHost 130.223.27.40> > > ServerAdmin webadmin@xxxxxxx > > ServerName www2n.unil.ch > > VirtualDocumentRoot /data/%p > DirectoryIndex index.html > > CustomLog /var/log/httpd/main/access_log combined > ErrorLog /var/log/httpd/main/error_log > > ScriptAlias /cgi-bin /data/cgi-bin > Options +Indexes > IndexOptions FancyIndexing > > </VirtualHost> > > The documents are correctly served by /data/80 if the URL is http://www2n.unil.ch. > > BUT the documents are not served for http://www2n.unil.ch:8080 unless I specified explicitely the filename such as http://www2n.unil.ch:8080/index.html. > > Any idea of which directive I have to add to get the default > index.html file for both cases http://www2n.unil.ch:8080 AND > http://www2n.unil.ch > > Thanks for your help > > > > > --------------------------------------------------------------------- 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