i have glassfish 4.1 running and checked the JK-Listener option on http-listener-2:
also i already installed apache (sudo yum install httpd) and created the following file on /etc/httpd/conf.d:
/etc/httpd/conf.d/ajp.conf
ProxyPass /painel ajp://localhost:8181/painel
ProxyPassReverse /painel ajp://localhost:8181/painel
But all that i got trying to use the ajp protocol was the 503 http error.
What i am missing?
if i change the protocol from ajp to http and port to 8080, it works. But the idea was to use the ajp.
Any help is welcome.
Best Answer
You've likely run into an issue with SELinux.
By default the web server can only make outbound connections to a limited range of ports:
Port 8181 isn't in that list.
So you have two options. You can either:
Add your desired port to the allowed ports list:
Run Glassfish on one of the existing allowed ports.