missing HTTP_HOST, HTTP/1.0 and rewrite rules (help needed!)

This is a discussion on missing HTTP_HOST, HTTP/1.0 and rewrite rules (help needed!) within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, I'm currently using Apache 1.3.x with a HTTP_HOST based rewrite system and a have some problem ...


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 03-11-2005
news.free.fr
 
Posts: n/a
Default missing HTTP_HOST, HTTP/1.0 and rewrite rules (help needed!)

Hello,

I'm currently using Apache 1.3.x with a HTTP_HOST based rewrite system
and a have some problem with HTTP/1.0 requests.

Some HTTP 1/0 request does not send the "Host:" variable

ex:

GET http://www.test.com/test.html HTTP/1.0

But my system use

HTTP_HOST_BASE for rewriting

And if HTTP_HOST is empty, HTTP_HOST_BASE is empty too and I have a Bad
Request 400 Error.

Forcing host to a be numeric is not the solution, because I need the
domain host.

Does someone have an idea to get the host OR making a redirection to an
other webserver if HTTP_HOST is empty.

Thank you very much for your attention

Julien



 


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:51 PM.


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