LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-24-2014, 10:36 AM   #1
Kaustuv
LQ Newbie
 
Registered: Aug 2011
Posts: 20

Rep: Reputation: Disabled
Hiding the port number in browser URL


I need your suggestion on hiding port number on redirected URL from browser... I have created a apache-tomcat bridge using following steps:

1) Deploying another application in separate context than ROOT under tomcat.
2) My default virtual hosts of apache listening on a dedicated port..say 80.
3) I wasn't allowed to use ProxyPass/ReverseProxy for some security constraint. So I have created another virtual-host listening on separate port with my own document root.(may be tomcat's deployment path for my app)... & used mod_jk to redirect the request to tomcat.
4) I have used RewriteRule to redirect the request generally for 80 port to my own virtual-host. with using [L,R] flags.

Now the redirected URL with the port number is getting visible in browser as it is explicit redirect... How can I hide/encrypt this port number to get displayed in browser?.... Don't ask to use [P] flag...it is nothing but the same of proxypass/reverseproxy....
 
Old 02-24-2014, 10:43 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
So your URL looks like:

Code:
http://yourdomain.com:8090/something.jsp
and you want to "hide" the 8090 bit?
 
Old 02-24-2014, 10:47 AM   #3
Kaustuv
LQ Newbie
 
Registered: Aug 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
Yes... My redirected URL is showing the port number. I want to hide this port number from URL in browser...
 
Old 02-24-2014, 10:51 AM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
You aren't going to do that without proxypass/reverseproxy,.. or perhaps some iptables wizardry.
 
  


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
trying to proxy SSL requests to another port to hide port # in URL mtlhd Linux - Server 11 10-19-2010 01:17 PM
Error parsing proxy URL http://localhost:4001 : Bad port number? lugoteehalt Linux - Networking 1 11-20-2009 06:58 PM
how does a brower get URL address info when the website is hiding it? sirpelidor Programming 3 12-05-2003 09:33 PM
Hiding Port Details? ifm Linux - Security 4 06-27-2002 04:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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