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:14:56 GMT
2009/4/9 Griffith, Michael * <Michael.Griffith@fda.hhs.gov>:
> 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.
>

Guessing the clients can resolve "tracking" to the correct server
through the DNS you've set up....
Otherwise the IE(vil) Users must add that custom hostname and the
correcponding IP-address in their hosts file.

then I'd set up a virtual host like that...

<VirtualHost  123.123.123.123:80>
        ServerName tracking
        Redirect / http://tracking.somewhere.else/
</VirtualHost>

No need to have a docroot etc.

byebye



> I suggested setting a browser bookmark, but was rebuffed. Browser is
> IE6, if that makes any difference. The problem is this used to work on a
> different server.
>
> Is there a way to configure the vhost to recognize the partial url and
> direct them to the app?
>
> In other words typing in --> tracking in the url would be the equivalent
> of http://tracking.domain.com/
>
> Here's what my vhost entry looks like:
>
> # Tracking Vhost
> <VirtualHost *:80>
>    <Directory "/www/docs/tracking">
>      Options Indexes FollowSymLinks
>      AllowOverride None
>      Order allow,deny
>      Allow from all
>    </Directory>
>    DocumentRoot /www/docs/tracking
>    DirectoryIndex index.html index.jsp index.htm index.php
>    ServerName tracking.domain.com
>    ServerAlias tracking.domain.com
>    OPtions ExecCGI Includes MultiViews SymLinksIfOwnerMatch Indexes
> -FollowSymLinks
>    JKMount /tracking/* ajp13
>    JKMount /tracking ajp13
> </VirtualHost>
>
> Any reply would be appreciated!
>
> MG
>
> ---------------------------------------------------------------------
> 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