RedirectMatch and HTTP response 305

This is a discussion on RedirectMatch and HTTP response 305 within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi All, I'm experiencing a strange problem with Apache. I have configured Apache to use virtual hosting. The configuration ...


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 12-10-2003
Pandorino MDG
 
Posts: n/a
Default RedirectMatch and HTTP response 305

Hi All,
I'm experiencing a strange problem with Apache.
I have configured Apache to use virtual hosting. The configuration
seems quite simple and clear:

#########
NameVirtualHost 193.204.227.5

<VirtualHost 193.204.227.5>
ServerName bianchi.esrin.esa.int
ErrorLog logs/error.log
CustomLog logs/access.log common
RedirectMatch (.*) http://bianchi.esrin.esa.int:8300$1
</VirtualHost>
##########

I'm expecting that the URL http://bianchi.esrin.esa.int is redirected
to http://bianchi.esrin.esa.int:8300.

Instead I got the error "The page cannot be found". Looking in the
access.log file, I found < "GET / HTTP/1.1" 302 305 >.
I expect respose code 302 (URL Temp redirected) but not 305 (Use
Proxy).
And I don't have a proxy, so why Apache answer in this way? And how
to fix this problem? mod_proxy is not compiled inside Apache.

Thanks in advance.
Mauro Del Giudice
  #2 (permalink)  
Old 12-10-2003
Justin Koivisto
 
Posts: n/a
Default Re: RedirectMatch and HTTP response 305

Pandorino MDG wrote:

> Hi All,
> I'm experiencing a strange problem with Apache.
> I have configured Apache to use virtual hosting. The configuration
> seems quite simple and clear:
>
> #########
> NameVirtualHost 193.204.227.5
>
> <VirtualHost 193.204.227.5>
> ServerName bianchi.esrin.esa.int
> ErrorLog logs/error.log
> CustomLog logs/access.log common
> RedirectMatch (.*) http://bianchi.esrin.esa.int:8300$1
> </VirtualHost>
> ##########
>
> I'm expecting that the URL http://bianchi.esrin.esa.int is redirected
> to http://bianchi.esrin.esa.int:8300.
>
> Instead I got the error "The page cannot be found". Looking in the
> access.log file, I found < "GET / HTTP/1.1" 302 305 >.
> I expect respose code 302 (URL Temp redirected) but not 305 (Use
> Proxy).
> And I don't have a proxy, so why Apache answer in this way? And how
> to fix this problem? mod_proxy is not compiled inside Apache.


Perhaps try:
Redirect / http://bianchi.esrin.esa.int:8300/

That way things like:
http://bianchi.esrin.esa.int/archive/24.html

would be redirected to
http://bianchi.esrin.esa.int:8300/archive/24.html

--
Justin Koivisto - spam@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.

  #3 (permalink)  
Old 12-12-2003
Pandorino MDG
 
Posts: n/a
Default Re: RedirectMatch and HTTP response 305

> Perhaps try:
> Redirect / http://bianchi.esrin.esa.int:8300/
>
> That way things like:
> http://bianchi.esrin.esa.int/archive/24.html
>
> would be redirected to
> http://bianchi.esrin.esa.int:8300/archive/24.html


Thanks Justin, I have tried it and it doesn't work very well. I'm
having the suspect that the problem is Oracle. Let me explain...
My architecture is:

Server: bianchi
WebServer on port 80: Apache
WebServer on port 8300: Oracle Web/App Server 4.0.8.2

So Apache listen for incoming connection on port 80.
With the VirtualHosting settings, I want to redirect accesses to port
80 to port 8300.
I have tried putting another Apache on port 8300 and it works. So the
problem is Oracle Web/App server... and I don't know how to proceed
further.

Ciao
M
 


Thread Tools
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

vB 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 01:35 AM.


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