0

I have two application one is working in php another is working in jetty server . i want configure in to Apache so i have write code in httpd conf file so i have write this code but it is not working properly

<VirtualHost *:80>
    ServerAdmin example.com
    DocumentRoot /var/www/html/example.com
    ServerName example.com
    ErrorLog logs/dev.mapmyindia.com-error_log
    CustomLog logs/dummy-host.example.com-access_log common


     ProxyRequests     off
     ProxyPreserveHost on
     ProxyPass /directionapp/ http://localhost:8989/index.html/
     ProxyPassReverse /directionapp/ http://localhost:8989/index.html/


<Directory /var/www/html/example.com>
        Options FollowSymLinks MultiViews
        AllowOverride all
        Order allow,deny
        allow from all  
</Directory>
<Directory /var/www/html/example.com/rim/>
        Options FollowSymLinks MultiViews
        AllowOverride all
        Order allow,deny
#        Allow from 122.160.188.70 122.180.97.58
        Allow from all
        #Allow from 122.160.188.70
</Directory>
</VirtualHost>
3
  • Assign different port to PHP project. For example 81 Commented Jul 29, 2015 at 6:58
  • @ Asad i did not change port . can you give idea to rewrite url to sloved problem Commented Jul 29, 2015 at 7:19
  • try this stackoverflow.com/questions/4346872/… Commented Jul 29, 2015 at 7:34

2 Answers 2

0

Take a look at this document https://www.playframework.com/documentation/2.3.x/HTTPServer

LoadModule proxy_module modules/mod_proxy.so

...

ProxyPreserveHost On

ServerName www.stackoverflow.com

ProxyPass /excluded !

ProxyPass / http://127.0.0.1:9000/

ProxyPassReverse / http://127.0.0.1:9000/

Sign up to request clarification or add additional context in comments.

Comments

0

You have to use mod_proxy to do this with Jetty. Here is the clean configuration details.

LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_balancer_module /usr/lib/apache2/modules/mod_proxy_balancer.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
LoadModule proxy_ajp_module /usr/lib/apache2/modules/mod_proxy_ajp.so
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.