httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] apache 1.3 configuration for a subdomain landing page
Date Tue, 17 Jun 2003 19:12:51 GMT

On Tue, 17 Jun 2003, chad kellerman wrote:
> I want a "subdomain" called access.gotc.net.  What I would like is to
> have the landing page for access.gotc.net to be:
> /home/bob/www/access.
>
> I do not think I should create another virtual host section.

Why not?  Creating another <VirtualHost> is by far the simplest and most
straigh-forward way to do this.

> I thought if I added something like:
>
> Redirect permanent ^access http://gotc.net/access

Redirect matches only on the URL-path (the part after the hostname and
port).  If you want to do it this way, you'll need to use mod_rewrite's
RewriteCond + RewriteRule.

Joshua.

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