Virtual host proxy problem

This is a discussion on Virtual host proxy problem within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello I have apache 2.2 setup with two virtual hosts (site1 and site2) Site1 should use proxy pass directive ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-03-2006
julian@isolve-online.com
 
Posts: n/a
Default Virtual host proxy problem

Hello

I have apache 2.2 setup with two virtual hosts (site1 and site2)

Site1 should use proxy pass directive so that all requests are
redirected to an application server

I can setup proxy pass to work for all requests to the server (
ignoring virtual host requests) but not at the virtual host level ie.
requests for both site1 and site2 are served by the application server.


This config file ignores the proxy pass request

<VirtualHost _default_>
DocumentRoot /usr/local/apache2/sites/site1
ServerName site1
<Directory "/usr/local/apache2/sites/site1">
allow from all
Options +Indexes
</Directory>
#ProxyRequests Off
<Proxy *>
Order deny,allow
allow from 192.168.10.111
</Proxy>
ProxyPass /site1 http://site1:8080/
ProxyPassReverse /site1 http://site1:8080/

Any Suggestions

Thanks in advance.

  #2 (permalink)  
Old 02-03-2006
julian@isolve-online.com
 
Posts: n/a
Default Re: Virtual host proxy problem

Thanks Davide for your reply

I dont think i explained myself well enough in the first message.

I have four sites on the same machine

3 of these sites serve html to the browser directly.

This is what i would like to achieve with the fourth site (site1)

1. For the browser to connect to http://site1
2. Apache passes the connection to http://app1:8080
3. http://app1:8080 returns processed html to the apache server1
4. The apache server to send this html to the browser.

ie. http://app1:8080 is transparent to the browser.

app1:8080 is an application server

Is this possible?

Also in the future other virtual hosts may connect to different
application servers.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:41 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0