httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Moon" <bri...@dealnews.com>
Subject Re: Location header for redirects after directory requests is wrong.
Date Tue, 05 Jun 2001 02:09:19 GMT
Ok, as long as there is a way.

Brian Moon
----------------------------------------------------------------------
dealnews.com, Inc.
Makers of dealnews, dealmac
http://dealnews.com/ | http://dealmac.com/


----- Original Message -----
From: "Cynic" <cynic@mail.cz>
To: <brianm@dealnews.com>
Sent: Monday, June 04, 2001 7:24 PM
Subject: Re: Location header for redirects after directory requests is
wrong.


> Hi Brian, I don't know about 2.0, but 1.3 has the UseCanonicalName
> directive. Seems like you have it (or its equivalent) turned on.
>
>
> At 14:32 4.6. 2001 -0500, you wrote:
> >I have a setup like:
> >
> ><VirtualHost _default_>
> >   ServerName dev.dealnews.com
> >   ServerAlias *.dealnews.com
> >.
> >.
> >.
> ></VirutalHost>
> >
> >In code we switch things based no HTTP_HOST.
> >
> >However, if requests for directories are made like:
> >
> >http://brian.dealnews.com/images
> >
> >where images is a dir, Apache sends a 301 and a Location of:
> >
> >http://dev.dealnews.com/images/
> >
> >Is there a reason that this happens this way with the ServerName being
used
> >instead of HTTP_HOST?  If someone can point me to the file that sets this
I
> >will change it and submit a patch.  Does Apache 2 do this as well?
> >
> >We have a development environment here where it matters what the
HTTP_HOST
> >is.  It also bit us on some of our code that uses ServerName thinking it
> >would be the same.  That was our mistake.  I now know that they could not
> >be.
> >
> >I have dug into the 1.3 code and can find many places like:
> >
> >ap_table_get(r->headers_out, "Location");
> >
> >This seems to get the Location out of something.  However I can not find
the
> >place where this is built and put into the hash or whatever.
> >
> >Brian Moon
> >------------------------------------------
> >dealnews.com, Inc.
> >Makers of dealnews & dealmac
> >http://dealnews.com/ | http://dealmac.com/
>
>
>
> cynic@mail.cz
> -------------
> And the eyes of them both were opened and they saw that their files
> were world readable and writable, so they chmoded 600 their files.
>      - Book of Installation chapt 3 sec 7
>
>
>


Mime
View raw message