Web Servers General Talk - Aliasing port numbers to "plain" URL strings

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers General Talk > January 2004 > Aliasing port numbers to "plain" URL strings





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Aliasing port numbers to "plain" URL strings
news.amnet.net.au

2004-01-19, 6:31 am

Hi

I have a problem I cannot seem to resolve. I would like to alias the some of
the URL people type in when they go to an Apache web server with
non-standard ports to plain names. For example, at the moment I have:

http://geodb.geoinformex.com:7777

but I would like people to be able to type in, for example

http://geodb/orapp/

to get to that location.

Similarly with some more complex URLs. I have:

http://geodb.geoinformex.com:7779/pls/portal

and I would like that to be:

http://geodb.geoinformex.com/portal/

How can I alias port numbers to "plain" names. I cannot use ScripAlias in
the httpd.conf file as that only aliases from the document root onwards,
i.e. it does not alias port numbers. Can anyone help me?

Thanks very much

Hugo


Thor Kottelin

2004-01-19, 6:31 am



"news.amnet.net.au" wrote:
quote:

> I would like to alias the some of
> the URL people type in when they go to an Apache web server with
> non-standard ports to plain names. For example, at the moment I have:
>
> http://geodb.geoinformex.com:7777
>
> but I would like people to be able to type in, for example
>
> http://geodb/orapp/
>
> to get to that location.



Have geoinformex.com in the search list on your resolvers. Run an HTTP
server on port 80. RedirectMatch ^/orapp/(.*)$
http://geodb.geoinformex.com:7777/$1 (optionally insert a suitable status
code).

Follow-ups set.

Thor

--
http://thorweb.anta.net/
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com