Page 1 of 1

Remove :8080 in the URL

PostPosted:Tue Oct 04, 2011 2:12 pm
by Rudolf21
Hi everyone!

I have a question about the OpenKM-access:
In our company we can access the application from "http://openkm:8080"
I've created an alias (openkm) and done a redirect to "http://openkm:8080/OpenKM" in the /jboss-web.developer/ROOT.war/index.html file.

Now:
What should do that we can access OpenKM just by "http:openkm" without writting the port in the URL, too?

When the Port in the server.xml file (and the redirect) is changed to 80, the application doesn't react anymore...8080 works fine.
The application.url in the OpenKM.cfg is set as "://openkm/OpenKM/com.openkm.frontend.Main/index.jsp"

I hope this are all Information needed and you can give me a hint how to solve this problem. :)
Thanks for the support!

Kind Regards

Re: Remove :8080 in the URL

PostPosted:Wed Oct 05, 2011 3:42 am
by joako
I solve this as follows:

1) Run Apache HTTP server on port 80
2) configure Apache proxy so http://your-host/OpenKM displays http://your-host:8080/OpemKM without :8080 in the client's URL:
Code: Select all
 ProxyPass /OpenKM ajp://localhost:8009/OpenKM
3) /index.php on port 80 HTTP server redirect the user to /OpenKM:
Code: Select all
<?PHP
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: /OpenKM/frontend/index.jsp" );
?>
This is further documented in OpenKM wiki.

Re: Remove :8080 in the URL

PostPosted:Fri Oct 07, 2011 6:51 pm
by jllort
The joako information is correct. The best option to hidden port 8080 is configure jboss aplication server behing an apache proxy on wiki you can find how doing it.

Other option could be change server.xml (jboss file) changin port 8080 to 80, but sincerally must discard it ... jboss has a lot of security problems exposing directly the application server ports, you must discard this option and go in apache proxy direction.