httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan G.B." <ro0ot.w...@googlemail.com>
Subject Re: [users@httpd] Vhost shortcut?
Date Thu, 09 Apr 2009 15:18:09 GMT
2009/4/9 Griffith, Michael * <Michael.Griffith@fda.hhs.gov>:
> Eric,
>
> Thanks for the quick reply. I have to admit I am a novice with Apache
> config.  Something like this would do the trick?
>
> RewriteRule ^/(.*)         http://fully.qualified.domain.name/$1 [L,R]
>
> Cheers!
> mg
>

Well.. something like this in your .htaccess
 (this is assuming your www server already responds to the name
tracking => after you added "tracking" in your vhost configuration.)

RewriteCond %{HTTP_HOST} ^tracking$ [NC]
RewriteRule ^(.*)$ http://tracking.v2.localdomain/$1?%{QUERY_STRING} [R=301,L]



byebye

> -----Original Message-----
> From: Eric Covener [mailto:covener@gmail.com]
> Sent: Thursday, April 09, 2009 10:06 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Vhost shortcut?
>
> On Thu, Apr 9, 2009 at 10:58 AM, Griffith, Michael *
> <Michael.Griffith@fda.hhs.gov> wrote:
>> I have some difficult users, who want to just type in a partial URL
>> (in this case "tracking") as the URL and be directed to an app that is
>
>> located on a server with a DNS entry tracking.domain.com.
>
> As long as DNS gets them to your server, you want "ServerAlias tracking"
> and maybe one of the canned "canonical hostname" rewrite rules in the
> manual.
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> 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
>
>
> ---------------------------------------------------------------------
> 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
>
>

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