LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-06-2009, 08:30 AM   #1
uks
Member
 
Registered: Jul 2007
Posts: 72

Rep: Reputation: 16
webpage redirection behind a secure site


Hello ,

I have installed a monitoring system(zenoss) behind a secure site https:xxxx.com

Now I want to redirect anythhing that hits the site like this example:

https:///xxxx.com/zport -> redirect to http://192.168.76.222:8080/zport

which means that the xerver xxx.com can reach the machine 192.168.76.222 .

When I write the follwoing in ssl.conf

ProxyPass /zport/ http://192.168.76.222:8080/zport
ProxyPassReverse /zport/ http://192.168.76.222:8080/zport

I get to the login screen of the site ok, but once I login it says"page cannot be displayed"....


Any assistance would be greatly appreciated.

--Ukesh Upendran

Last edited by uks; 07-24-2009 at 06:41 AM.
 
Old 02-06-2009, 10:10 AM   #2
redhawk1973
Member
 
Registered: Jul 2003
Location: Woodbridge VA
Distribution: Red Hat, Suse, AIX, Fedora, Cent OS, Ubuntu, Mint Linux
Posts: 58

Rep: Reputation: 18
Use Iptables to redirect the website to the port.

I am running Zenoss and I have the redirect in place.
Since I am not in the office. I can not post the code.
When I get into the office I will post the code that I used

Last edited by redhawk1973; 02-06-2009 at 10:12 AM.
 
Old 02-09-2009, 05:39 AM   #3
uks
Member
 
Registered: Jul 2007
Posts: 72

Original Poster
Rep: Reputation: 16
Thanks very much for the suggestion.
I am looking forward to the code you are going to post.
Is it as simple as directing all traffice that hits the actual machine on port 8080 to the machine you have zenoss on ?
I am awaiting your response.
 
Old 02-10-2009, 02:10 AM   #4
uks
Member
 
Registered: Jul 2007
Posts: 72

Original Poster
Rep: Reputation: 16
Another thing I noticed here was that the redirection happens only for the first screen, and any other page after that, the url converts to http://192.168.76.222:8080/zport from https://xxx/zport/....
and hence becomes inaccessible. So I want the redirection to be stable and never convert to the ip. Where am I going wrong ?
 
Old 02-10-2009, 06:49 AM   #5
camh
Member
 
Registered: Feb 2005
Distribution: Slack/Debian
Posts: 163
Blog Entries: 2

Rep: Reputation: 33
You might want to look into mod_rewrite for the url conversion
 
Old 02-11-2009, 11:10 AM   #6
redhawk1973
Member
 
Registered: Jul 2003
Location: Woodbridge VA
Distribution: Red Hat, Suse, AIX, Fedora, Cent OS, Ubuntu, Mint Linux
Posts: 58

Rep: Reputation: 18
Sorry took so long

This is the command I used
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
 
Old 02-12-2009, 10:57 AM   #7
uks
Member
 
Registered: Jul 2007
Posts: 72

Original Poster
Rep: Reputation: 16
Thanks much for that.
I have got the Rewrite rule to do this.
In this case I think you are redirecting the access from port 80 to 8080.
But I have zenoss on a different machine altogether and the weserver on a different machne, meaning, if someone access xxxx:80/zenoss it should go to machine yyyy:8080

I greatly appreciate your suggestion, Thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how can I secure my nis server ?can I use openSSL to secure it form sniffing ? abhi_raj Linux - Networking 1 07-10-2006 07:19 AM
LXer: University of Michigan Selects SSH Tectia for Secure System Administration and Secure File Transfers LXer Syndicated Linux News 0 04-25-2006 01:54 AM
http and https, setuping up a secure site helpme0904 Linux - Newbie 1 06-04-2005 10:34 PM
Is this site secure (nmap output)? Erik Thorsson Linux - Security 14 10-24-2004 03:44 PM
E-tailer keeps telling me site is secure when even I can see it is not. ArthurDaley Linux - Security 10 06-23-2003 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:59 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration