You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by chad kellerman <ck...@alabanza.com> on 2003/06/17 20:55:46 UTC
[users@httpd] apache 1.3 configuration for a subdomain landing page
Hello,
I am not too sure what directive to use in this situation that I
have..
NameVirtualHost 10.10.10.1
# www.gotc.net
<VirtualHost 10.10.10.1:80>
User bob
Group bobgrp
ServerName www.gotc.net
ServerAdmin webmaster@gotc.net
DocumentRoot /home/bob/www
TransferLog /home/bob/logs/access-log
ErrorLog /home/bob/logs/error_log
ScriptAlias /cgi-bin/ /home/bob/www/cgi-bin/
</VirtualHost>
my situation is this..
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. I
think/thought there is a directove that would allow me to match access
and redirect it to /home/bob/www/access, but I am not sure what it is..
I thought if I added something like:
Redirect permanent ^access http://gotc.net/access
to the vreitual host it would work, but it doesn't appear to be.
Can anyone offer any suggestions?
Thanks a lot,
Chad
---------------------------------------------------------------------
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] apache 1.3 configuration for a subdomain landing
page
Posted by Joshua Slive <jo...@slive.ca>.
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