You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Adam Cormany <ac...@yahoo.com> on 2002/08/14 22:09:20 UTC
Alias or VirtualHost?
I'm not sure if this is possible, and if it is, how to
do it exactly. I would like to set up a link in my
Apache to redirect myself to a certain IP and port.
For example:
I want to be able to, from a web browser, type in
http://1.2.3.4/webstats and have it actually take me
to http://4.3.2.1:5678
Is this possible through Alias or VirtualHost or
something else in Apache? Can someone point me into
the right direction or tell me how to do this?
I am running Apache 2.0.36 on Redhat 7.3, kernel
2.4.18-5.
Thanks in advance,
Adam Cormany
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Alias or VirtualHost?
Posted by "Matus \"fantomas\" Uhlar" <uh...@fantomas.sk>.
-> I want to be able to, from a web browser, type in
-> http://1.2.3.4/webstats and have it actually take me
-> to http://4.3.2.1:5678
Well, directive
Redirect /webstats http://4.3.2.1:5678/
in VirtualHost for 1.2.3.4 (or main server config if no vhosts are defined)
should do it.
--
Matus "fantomas" Uhlar, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I don't wish to receive spam to this address.
Varovanie: Nezelam si na tuto adresu dostavat akukolvek reklamnu postu.
The only substitute for good manners is fast reflexes.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Alias or VirtualHost?
Posted by Ian Stuart <Ia...@ed.ac.uk>.
On Wed, 2002-08-14 at 21:09, Adam Cormany wrote:
> I want to be able to, from a web browser, type in
> http://1.2.3.4/webstats and have it actually take me
> to http://4.3.2.1:5678
Neither - rebuild server with mod_proxy:
In httpd.conf for server on 1.2.3.4
ProxyPass /webstats/ http://4.3.2.1:5678/
ProxyPassReverse /webstats/ http://4.3.2.1:5678/
(modified from a 2.0.39 server config file :)
--
--==++
Ian Stuart: Edinburgh University Data Library.
Information is not knowledge
Knowledge is not wisdom
Wisdom is not truth
Truth is not beauty
Beauty is not love
Love is not music
-- Mary.
Personal web site: http://lucas.ucs.ed.ac.uk/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: Alias or VirtualHost?
Posted by Matthijs Rohs <ma...@rohs.nl>.
I mean don't know the exact lines. :)
I'm using this in my .htaccess:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^bams.rohs-systems.com$
RewriteCond %{REQUEST_URI} !^/bams/
RewriteRule (.*) /bams/$1
To point http://bams.rohs-systems.com/ to http://rohs-systems.com/bams/
You will have to load the mod_rewrite module in your httpd.conf by
uncommenting it.
Read @ apache.org
ViVa
-----Oorspronkelijk bericht-----
Van: Matthijs Rohs [mailto:matthijs@rohs.nl]
Verzonden: woensdag 14 augustus 2002 22:11
Aan: users@httpd.apache.org
Onderwerp: RE: Alias or VirtualHost?
Use mod_rewrite :)
Dunno how exactly read about it in the manual @ apache.org
ViVa
-----Oorspronkelijk bericht-----
Van: Adam Cormany [mailto:acormany@yahoo.com]
Verzonden: woensdag 14 augustus 2002 22:09
Aan: users@httpd.apache.org
Onderwerp: Alias or VirtualHost?
I'm not sure if this is possible, and if it is, how to
do it exactly. I would like to set up a link in my
Apache to redirect myself to a certain IP and port.
For example:
I want to be able to, from a web browser, type in
http://1.2.3.4/webstats and have it actually take me
to http://4.3.2.1:5678
Is this possible through Alias or VirtualHost or
something else in Apache? Can someone point me into
the right direction or tell me how to do this?
I am running Apache 2.0.36 on Redhat 7.3, kernel
2.4.18-5.
Thanks in advance,
Adam Cormany
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: Alias or VirtualHost?
Posted by Matthijs Rohs <ma...@rohs.nl>.
Use mod_rewrite :)
Dunno how exactly read about it in the manual @ apache.org
ViVa
-----Oorspronkelijk bericht-----
Van: Adam Cormany [mailto:acormany@yahoo.com]
Verzonden: woensdag 14 augustus 2002 22:09
Aan: users@httpd.apache.org
Onderwerp: Alias or VirtualHost?
I'm not sure if this is possible, and if it is, how to
do it exactly. I would like to set up a link in my
Apache to redirect myself to a certain IP and port.
For example:
I want to be able to, from a web browser, type in
http://1.2.3.4/webstats and have it actually take me
to http://4.3.2.1:5678
Is this possible through Alias or VirtualHost or
something else in Apache? Can someone point me into
the right direction or tell me how to do this?
I am running Apache 2.0.36 on Redhat 7.3, kernel
2.4.18-5.
Thanks in advance,
Adam Cormany
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org