Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: How to configure port 80 to proxypass and redirect request? |
|
Author |
|
vishnukumar
Joined: 20 Sep 2012 Posts: 1 Location: India
|
Posted: Fri 21 Sep '12 12:24 Post subject: How to configure port 80 to proxypass and redirect request? |
|
|
Hi,
I am using Apache HTTP server 2.2. I have two things to perform and both requires port 80,
1) Redirect request to an application that is running in Glassfish
2) URL that ends in /Reports should be redirected to a directory where it contains HTML files to view.
Redirecting request to an application
=====================================
I have done this using ProxyPass within <VirtualHost *:80>,
ProxyPass / http://locahost:8080/gwtApp/
ProxyPassReverse / http://locahost:8080/gwtApp/
URL that ends in /Reports
==========================
This is done using the below config.
<VirtualHost *:80>
DocumentRoot "/var/www/Reports"
ServerPath "/Reports/"
<Directory "/var/www/Reports">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
If I use both <VirtualHost>, then the first virtual host with proxypass works but not the next virtual host. How I can combine these two things in one virtual host or any other way to do this? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Sat 22 Sep '12 22:47 Post subject: |
|
|
Code: |
ProxyPass /Reports !
ProxyPass / http://locahost:8080/gwtApp/
ProxyPassReverse / http://locahost:8080/gwtApp/
|
That excludes Reports from the reverse proxy. |
|
Back to top |
|
|
|
|
|
|