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: How to configure port 80 to proxypass and redirect request?
Author
vishnukumar



Joined: 20 Sep 2012
Posts: 1
Location: India

PostPosted: Fri 21 Sep '12 12:24    Post subject: How to configure port 80 to proxypass and redirect request? Reply with quote

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

PostPosted: Sat 22 Sep '12 22:47    Post subject: Reply with quote

Code:

ProxyPass /Reports !
ProxyPass / http://locahost:8080/gwtApp/
ProxyPassReverse / http://locahost:8080/gwtApp/


That excludes Reports from the reverse proxy.
Back to top


Reply to topic   Topic: How to configure port 80 to proxypass and redirect request? View previous topic :: View next topic
Post new topic   Forum Index -> Apache