Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Port Redirect and Apache Virtual Server Directive

Status
Not open for further replies.

AlStl

MIS
Oct 2, 2006
83
0
0
US
I have been researching this for last few weeks and now hit a brick wall. May be someone here can shed some light on this. I want to know if this is even possible?

Background:
I have apache as http and tomcat as servlet container using mod_jk. They are running a java app on Solaris 10.

Issue Description:
As we all know http request default listening port is 80. I wanted to create a application URL (runs inside company intranet) that will not have port information as it does today:

I want URL to simply have
To do this I thought following needs to be done:

a) A port redirect i.e. 80 to something that will be used in virtual server directive of apache httpd.conf file
b) Use virtual server directive in apache httpd.conf file ex:

LISTEN 80
NameVirtualHost *:80
<Virtual Host *:80>
ServerName fakename.xx.com
RewriteEnginer on
RewriteRule ^/(.*)$/app_xxx/$1 [L,PT]
JKMount /* tomcatinstancename
</Virtual Host>

Well, due to security reason a port 80 re-direct will not be allowed. So reference of port 80 in above code is not an option.

Do I have to any other option or method to accomplish the above?
 
Try this, as documented here.

ProxyPass /app ajp://backend.example.com:8009/app

Good luck...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top