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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
> 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 | |
|
|