httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <rob...@profundis.nu>
Subject Re: [users@httpd] Newbie: Can this be done ?? If so what is it called ??
Date Fri, 17 Oct 2003 08:24:26 GMT
Matt Pearce wrote
:> I am new to apache and have been trying for a few days now to work out
how
> to get http://webmail.XXXXXX.com.au/cgi-bin/openwebmail/openwebmail.pl
> to open when someone goes to http://webmail.XXXXXX.com.au .

How about this?

    <VirtualHost *>
        ServerName webmail.domain.com.au
        RedirectMatch ^/$ http://webmail.domain.com.au/path/to/webmail
    </VirtualHost>
    (Substitute /path/to/webmail with yours, I cut it so it would wrap)

Lookup RedirectMatch in the docs if you're not familiar with it.

If you are using a wild-card ServerAlias (eg. webmail.*) with or without
mod_vhost_alias, I think you need to use mod_rewrite to do the equivalent
while keeping the original hostname.

Regards,
Robert Andersson


---------------------------------------------------------------------
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


Mime
View raw message