Proxy through apache not working correctly

2004-02-27 Thread Michael Forster


-Original Message-
I am having problems with Apache and Tomcat,
I am running Apache with many websites, one needs to use Tomcat.
I had the setting as such using Virtual name servers

VirtualHost www.mysite.net:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/httpd/htdocs/sites/mysite/
ServerName www.mysite.net
ProxyPass / http://mysite.net:8080
ProxyPassReverse / http://mysite.net:8080
/VirtualHost

This works to an extent

if you connect to www.mysite.net:8080 you get the tomcat home page in full
all graphics displaying.

if you connect to www.mysite.net you get the tomcat home page but no
graphics

If you try to ask for the graphic directly you get an error 400 Unrecognised
Response from Server...

if you change the ProxyPass to /webapps it works fully and serves the images
has anyone any idea why?

Mike.

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w
O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++
G e+ h++ r+++ y+++
--END GEEK CODE BLOCK--
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Proxy through apache not working correctly

2004-02-27 Thread Asif Chowdhary
Hi,

I put my application context
and it works fine.

ProxyPass /context http://mysite.net:8080
ProxyPassReverse /context http://mysite.net:8080

-Original Message-
From: Michael Forster [mailto:[EMAIL PROTECTED]
Sent: Friday, February 27, 2004 11:14 AM
To: [EMAIL PROTECTED]
Subject: Proxy through apache not working correctly




-Original Message-
I am having problems with Apache and Tomcat,
I am running Apache with many websites, one needs to use Tomcat.
I had the setting as such using Virtual name servers

VirtualHost www.mysite.net:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/httpd/htdocs/sites/mysite/
ServerName www.mysite.net
ProxyPass / http://mysite.net:8080
ProxyPassReverse / http://mysite.net:8080
/VirtualHost

This works to an extent

if you connect to www.mysite.net:8080 you get the tomcat home page in full
all graphics displaying.

if you connect to www.mysite.net you get the tomcat home page but no
graphics

If you try to ask for the graphic directly you get an error 400 Unrecognised
Response from Server...

if you change the ProxyPass to /webapps it works fully and serves the images
has anyone any idea why?

Mike.

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w
O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++
G e+ h++ r+++ y+++
--END GEEK CODE BLOCK--
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Proxy through apache not working correctly

2004-02-27 Thread Michael Forster
It works correctly for me but I want the context to be / not /webapps
Like I said it works for the jsp page but the img files inside are not sent
and they produce a

Bad Request
Your browser sent a request that this server could not understand.

error (400 Bad Request)


 -Original Message-
 From: Asif Chowdhary [mailto:[EMAIL PROTECTED]
 Sent: 27 February 2004 16:24
 To: Tomcat Users List
 Subject: RE: Proxy through apache not working correctly


 Hi,

 I put my application context
 and it works fine.

 ProxyPass /context http://mysite.net:8080
 ProxyPassReverse /context http://mysite.net:8080

 -Original Message-
 From: Michael Forster [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 27, 2004 11:14 AM
 To: [EMAIL PROTECTED]
 Subject: Proxy through apache not working correctly




 -Original Message-
 I am having problems with Apache and Tomcat,
 I am running Apache with many websites, one needs to use Tomcat.
 I had the setting as such using Virtual name servers

 VirtualHost www.mysite.net:80
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /usr/local/httpd/htdocs/sites/mysite/
 ServerName www.mysite.net
 ProxyPass / http://mysite.net:8080
 ProxyPassReverse / http://mysite.net:8080
 /VirtualHost

 This works to an extent

 if you connect to www.mysite.net:8080 you get the tomcat home page in full
 all graphics displaying.

 if you connect to www.mysite.net you get the tomcat home page but no
 graphics

 If you try to ask for the graphic directly you get an error 400
 Unrecognised
 Response from Server...

 if you change the ProxyPass to /webapps it works fully and serves
 the images
 has anyone any idea why?

 Mike.

 -BEGIN GEEK CODE BLOCK-
 Version: 3.12
 GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w
 O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++
 G e+ h++ r+++ y+++
 --END GEEK CODE BLOCK--
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Proxy through apache not working correctly

2004-02-27 Thread Michael Forster
In both cases whether it is /webapps or /  on the server XML the context is
set to
!-- Tomcat Root Context --
  Context path=/ docBase=ROOT debug=0
  /Context

it seems that if the proxypass is set to / it doesnt work (the graphics are
also available from apache as / when in /webapps config.

It seems that because the proxypass is there it cannot understand requests
for non jsp/bean requests.


 -Original Message-
 From: Michael Forster [mailto:[EMAIL PROTECTED]
 Sent: 27 February 2004 16:49
 To: Tomcat Users List
 Subject: RE: Proxy through apache not working correctly


 It works correctly for me but I want the context to be / not /webapps
 Like I said it works for the jsp page but the img files inside
 are not sent
 and they produce a

 Bad Request
 Your browser sent a request that this server could not understand.

 error (400 Bad Request)


  -Original Message-
  From: Asif Chowdhary [mailto:[EMAIL PROTECTED]
  Sent: 27 February 2004 16:24
  To: Tomcat Users List
  Subject: RE: Proxy through apache not working correctly
 
 
  Hi,
 
  I put my application context
  and it works fine.
 
  ProxyPass /context http://mysite.net:8080
  ProxyPassReverse /context http://mysite.net:8080
 
  -Original Message-
  From: Michael Forster [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 27, 2004 11:14 AM
  To: [EMAIL PROTECTED]
  Subject: Proxy through apache not working correctly
 
 
 
 
  -Original Message-
  I am having problems with Apache and Tomcat,
  I am running Apache with many websites, one needs to use Tomcat.
  I had the setting as such using Virtual name servers
 
  VirtualHost www.mysite.net:80
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot /usr/local/httpd/htdocs/sites/mysite/
  ServerName www.mysite.net
  ProxyPass / http://mysite.net:8080
  ProxyPassReverse / http://mysite.net:8080
  /VirtualHost
 
  This works to an extent
 
  if you connect to www.mysite.net:8080 you get the tomcat home
 page in full
  all graphics displaying.
 
  if you connect to www.mysite.net you get the tomcat home page but no
  graphics
 
  If you try to ask for the graphic directly you get an error 400
  Unrecognised
  Response from Server...
 
  if you change the ProxyPass to /webapps it works fully and serves
  the images
  has anyone any idea why?
 
  Mike.
 
  -BEGIN GEEK CODE BLOCK-
  Version: 3.12
  GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w
  O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++
  G e+ h++ r+++ y+++
  --END GEEK CODE BLOCK--
  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004
 
  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  ---
  Incoming mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]