You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Isabelle Moullet <Is...@unil.ch> on 2005/08/23 10:41:43 UTC
[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@unil.ch
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
--
Isabelle Moullet
Centre Informatique UNIL
College Propedeutique 2
CH 1015 Lausanne
Tel: +41 21 692 22 23
**************************
Help Desk du Centre informatique: Email: helpdesk@unil.ch
(lundi au vendredi 8h30 - 17h00) Tel: 021 692 22 11
********************************************
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] mass virtual hosting
Posted by Spike Burkhardt <bu...@ssd.loral.com>.
Isabelle,
In your VirtualHost directive try:
<VirtualHost http://www2n.unil.ch:8080 http://www2n.unil.ch>
spike
Isabelle Moullet wrote:
> 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@unil.ch
>
> 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
>
>
>
>
>