server 5 apache problem
Hi guys
I need quickly a help because my application are not more accessible. I have a mac mini with os x server and i configured it with apache mod rewrite in this way:
- www.pincopalla.it/PresenceChecker redirects to www.pincopalla.it:8080/PresenceChecker, so for every browser call the system redirects the user to the same machine on port 8080 (jboss application server);
- www.pincopalla.it/controller redirects to www.pincopalla.it:8090/controller, so for every browser call the system redirects to another machine (192.168.0.53), another port 8090 (glassfish appdynamics).
Until Server 4.1.* I modified /private/etct/apache2/httpd-vhosts.conf adding:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /Library/WebServer/Documents
ErrorLog /var/log/apache2/error_log
CustomLog /var/log/apache2/access_log combined
<Proxy *>
Require all granted
</Proxy>
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /controller http://192.168.0.53:8090/controller
ProxyPassReverse /controller http://192.168.0.53:8090/controller
ProxyPass /PresenceChecker http://localhost:8080/PresenceChecker
ProxyPassReverse /PresenceChecker http://localhost:8080/PresenceChecker
ProxyPass /MailDispatcherWar http://localhost:8080/MailDispatcherWar
ProxyPassReverse /MailDispatcherWar http://localhost:8080/MailDispatcherWar
<Location /controller>
Require all granted
</Location>
</VirtualHost>
But in Server 5.0.4 this trick doesn't work anymore. I need help 😟
Thanks in advance