Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Context

I currently installed Glassfish 3 in a server that currently holds ASP and PHP inside Internet Information Server 7 so we can start moving to a new system architecture (the information system is being remade). Obviously, Glassfish uses another port and without too much configuration (all I had to do is to install it) it worked. If I write www.domain.com:8080, the person will be redirected to the Glassfish server.

Issue

Obviously I don't want the person to write the port! I also believe it might also hold some security issues.

Requirement

I need the server to take an address of the form www.domain.com/gf or new.domain.com or something alike, and when it receives such a request, "redirect" (masking the URL) the user to the Glassfish website (www.domain.com:8080).

Thank you beforehand!

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

sounds like you need something like the Apache Tomcat connector for iis dont let the name fool you it also works for glassfish

between this http://www.codefactorycr.com/glassfish-behind-apache.html (Yes i know it is for mod_JK but the workers.properties file is very similar for the isapi filter) and https://confluence.atlassian.com/pages/viewpage.action?pageId=218270157

you should have a good start getting it working

share|improve this answer
    
Well, I did everything there, but I can't get to enter using either the port (website:8009) or the alias (which I think I did the latter wrong anyways) outside the server, much like my prior attempts. What might I be doing wrong? –  user1231958 Oct 14 '12 at 5:50
    
If you are saying you can't reach them outside the server the windows firewall may be blocking the traffic. Either make sure the proper exceptions are in place or try temporarily disabling the firewall –  Robert Oct 15 '12 at 17:17
    
After thinking a little more another solution would be a reverse proxy using Application Request Routing and URL Rewrite in IIS7 you will need to install the modules from www.iis.net. here is a tutorial to get you started if you wish to give this a try. iis.net/learn/extensions/url-rewrite-module/… –  Robert Oct 15 '12 at 17:20
    
I'm sorry I took so long to respond, I've been quite busy lately and haven't been able to do anything else. I tried doing what you suggested me at first again using another website, and now I get a 500 error when calling GetFilterVersion from the ISAPI. What might cause it? –  user1231958 Oct 18 '12 at 4:16
    
Also today I tried using the URL rewrite and all I got was a 404 error... –  user1231958 Oct 18 '12 at 14:40
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.