Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

many redirects / unavailable Host: header

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Cannot launch simple applications (notepad, java)..  
Author Message
wurzelsepp201

External


Since: May 23, 2004
Posts: 1



(Msg. 1) Posted: Mon May 24, 2004 12:32 am
Post subject: many redirects / unavailable Host: header
Archived from groups: alt>apache>configuration (more info?)

Hello

I need to configure Apache to handle around 1000 redirects in around
30 virtual hosts, with one of them handling the vast majority of
around 700. I wanted to use mod_alias Redirect statements, but
unfortunately I can't: I receive the requests through a reverse proxy
that cannot preserve the browsers "Host:" header unmodified, instead I
receive it in another HTTP header, HTTP_DOMAIN (yes, I know, a strange
reverse proxy but there is no choice). I switched to using mod_rewrite
which has no problems extracting the information from the HTTP_DOMAIN
header. I end up with lots of statements like

RewriteCond %{HTTP:HTTP_DOMAIN} ^my\.domain\.com$
RewriteRule ^/f/e/u/config.html(/|$)
http://my.domain.com/some/other/url [redirect,noescape,last]

RewriteCond %{HTTP:HTTP_DOMAIN} ^my\.domain\.com$
RewriteRule ^/e/e/u/konfig.html(/|$)
http://my.domain.com/some/other/url [redirect,noescape,last]


There must be ways to do this in a more effective way. Is there a
possibility to set the "Host:" header with mod_rewrite and then let
the
request be handled by the Redirect statements in name based
VirtualHost sections?

Thanks

/Francois

 >> Stay informed about: many redirects / unavailable Host: header 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Host Header Name - Hello, I'm not too familiar with web servers. Is it possible to configure Apache not respond to requests without the appropriate host header name? I.E. Get's for www.foo.com (FQDN) will be responded too. However,get's for 1.2.3.4 (IP address) do not..

redirects and reverse proxies - I have a problem with redirects on an IIS server sitting behind an apache web server acting as a reverse proxy. This has to do with the inherent redirects using forcing the trailing slash. If I hit a website using a pathname and relying on its..

apache redirects fail - Hi, I'm having Apache 1.3 running on RedHat linux 6.2. Everything works fine on my intranet. When i want to access the webserver from the internet it fails on requests that cause a direct. The ip address of the webserver is 10.0.0155. It connects via a...

Odd apache header (~~~~~~~~~~~~~~:) - Anyone know what this header is? My copy of apache returns it, and I've seen others do it too. Richard.

HTTP Response header - Hello everybody I have a problem to set HTTP response header. I'm using apache httpd as a frontend of my application server. My application server send some http headers, that have to be to modified. I could not use mod_headers because "append&quot...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]