LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-27-2010, 03:27 PM   #1
vbekker
Member
 
Registered: Aug 2010
Location: Brooklyn, NY
Distribution: CentOS
Posts: 38

Rep: Reputation: 0
URL redirection or reverse proxy?


Hello All,
I apologize in advance if this is redundant. I have a web application running on port 8060 and requires a sub directory on the end (:8060/fisheye/). I also have apache running on port 80 and would like to redirect it to http//crucible2.example:8060/fisheye/.
Any advice is greatly appreciated.
Thanks
this is what i have so far
Code:
RedirectMatch ^/$ http://crucible2.example.com:8060/fisheye/
but the port number is visible, how can i hide it?

Last edited by vbekker; 12-27-2010 at 03:31 PM.
 
Old 12-27-2010, 03:35 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
modproxy would be a better approach, using the ProxyPass directive
 
Old 12-27-2010, 03:39 PM   #3
vbekker
Member
 
Registered: Aug 2010
Location: Brooklyn, NY
Distribution: CentOS
Posts: 38

Original Poster
Rep: Reputation: 0
Any more insight would be greatly appreciated...I am unable to find anything about this elsewhere
Thank You

Last edited by vbekker; 12-28-2010 at 11:53 AM.
 
Old 12-28-2010, 03:37 PM   #4
vbekker
Member
 
Registered: Aug 2010
Location: Brooklyn, NY
Distribution: CentOS
Posts: 38

Original Poster
Rep: Reputation: 0
NameVirtualHost *
<VirtualHost *>
RewriteEngine On
RedirectMatch ^/$ http://crucible2.example.com/fisheye/
ServerName crucible2.yodle.com
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /fisheye http://crucible2.example.com:8060/fisheye
ProxyPassReverse /fisheye http://crucible2.example.com:8060/fisheye
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] URL redirection problem in a reverse proxy apache2 environment on Lenny with Xen tkmsr Linux - Server 10 04-30-2010 01:42 AM
Apache Vhost with reverse proxy and redirection volga629 Linux - Server 3 01-13-2010 03:30 AM
Forwarding all traffic to the proxy to another proxy (transparent proxy/redirection) lakshithaww Linux - Networking 1 10-28-2009 12:54 AM
Can I use squid for url redirection? GGlinux Linux - Software 2 02-24-2009 05:59 AM
mod_rewrite url redirection sqn Linux - Software 2 10-04-2006 08:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration