LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 07: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 05:41 AM.
 
Old 02-06-2009, 09: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 09:12 AM.
 
Old 02-09-2009, 04: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, 01: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, 05: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, 10: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, 09: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



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 06: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 12:54 AM
http and https, setuping up a secure site helpme0904 Linux - Newbie 1 06-04-2005 09:34 PM
Is this site secure (nmap output)? Erik Thorsson Linux - Security 14 10-24-2004 02: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 12:52 PM

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

All times are GMT -5. The time now is 01:55 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