2009/4/9 Griffith, Michael * <michael.griff...@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:cove...@gmail.com]
> Sent: Thursday, April 09, 2009 10:06 AM
> To: users@httpd.apache.org
> Subject: Re: [us...@httpd] Vhost shortcut?
>
> On Thu, Apr 9, 2009 at 10:58 AM, Griffith, Michael *
> <michael.griff...@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
> cove...@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-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@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-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to