logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: GlassFish and Htaccess without httpd.conf [Resolved]
Author
78waves



Joined: 28 Oct 2016
Posts: 2
Location: BIH

PostPosted: Fri 28 Oct '16 13:46    Post subject: GlassFish and Htaccess without httpd.conf [Resolved] Reply with quote

As we are on Managed, we are unable to edit httpd.conf / virtualhost.

So to leave domain.tld for future use,
I created subfolder and subdomain, and in subfolder .htacc.
Code:
RewriteRule   ^(.*)  http://localhost:8080/$1 [P]


now Im unable to add other things like disable HTTP, and allow only HTTPS, and only way to make GlassFish to use domain SSL - it was to use RewriteRule.
- it look like DB calls are stoped after some time, could be that its because of [P], but will investigate that.

Apache 2.4
Debian 8
GlassFish 4.1
Hetzner Managed


So this could be paid gig if someone is interested,
as I would love to fix this in near future (yesterday).


Last edited by 78waves on Mon 07 Nov '16 11:40; edited 1 time in total
Back to top
78waves



Joined: 28 Oct 2016
Posts: 2
Location: BIH

PostPosted: Mon 07 Nov '16 11:40    Post subject: Resolved Reply with quote

We switched to 2nd server and used AJP13, LetsEncrypt, a2enmod jk

You can follow all steps from here:https://www.lyonlabs.org/howto/howdoi-glassfish.html
Back to top


Reply to topic   Topic: GlassFish and Htaccess without httpd.conf [Resolved] View previous topic :: View next topic
Post new topic   Forum Index -> Apache