Re: Vhost shortcut?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/4/9 Griffith, Michael * <Michael.Griffith@xxxxxxxxxxx>:
> 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@xxxxxxxxx]
> Sent: Thursday, April 09, 2009 10:06 AM
> To: users@xxxxxxxxxxxxxxxx
> Subject: Re:  Vhost shortcut?
>
> On Thu, Apr 9, 2009 at 10:58 AM, Griffith, Michael *
> <Michael.Griffith@xxxxxxxxxxx> 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@xxxxxxxxx
>
> ---------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxx
>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>
> ---------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxx
>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux