[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

Re: fancy redirects / 404 passthrough



No, the URL doesn't have a ? - that was someone else's
issue.  My URL is just site.com/username
Tux has no way of knowing the file type, because the
file does not exist.
I was getting Tux's 404 error.  Let's go about this
from a different angle: 

>From the docs:
-----
404_page: If Red Hat Content Accelerator does not
manage to look up a requested page then it first tries
to look up the document specified in 404_page. If the
404 page can not be found, the canned 404 message is
sent. The file is relative to the document root.  
-----
OK, how do you disable 404 handling completely?  Just
make the request pass through?


--- Chris Davies <mcd@daviesinc.com> wrote:
> I'm almost wondering if the apache backend is
> presenting your 404.
> 
> Because there are a few issues that just glare at
> me:
> 
> 1) the url has a ? -- tux hands that to the backend
> 2) php is probably set to redirect in tux.mime.types
> and would pass to
> the backend
> 3) the existing domain.com/username doesn't exist
> AND you say --> APACHE
> <-- rewrites it to ShowPage.php?user=   mod_rewrite
> in this case would
> probably do a local redirect rather than a 302
> redirect.
> 
> You've asked for tux to strip the query string off
> of the url being
> passed, but your apache process can do that.
> 
> so the behavior you are documenting -- i.e. TUX
> dropping the 404 -- sure
> seems to be against everything I have ever observed.
>  There are times I
> have seen tux just drop the connection, but usually
> when there was a
> hostname where there was no IP/domain.com directory
> or something like
> that.
> 
> show us the mod_rewrite
> what type of virtual hosting do you have tux set to
> do?  
> are there any symlinks?
> 
> On Wed, 2003-10-29 at 11:55, human bn wrote:
> > Sure, basically I have 40,000 pages created by the
> > same PHP file.  They are accessed via
> > site.com/[username] but those URL's do not exist -
> > Apache transparently rewrites them to
> > site.com/ShowPage.php?user=[username]
> > 
> > So I figured the easiest way to have Tux duplicate
> > this behavior would be to just have it fall
> through to
> > Apache whenever a file/directory is not found. 
> Except
> > Tux seems to always handle it as a 404 instead of
> > having it fall through.
> 
> 
> _______________________________________________
> 
> tux-list@redhat.com
> https://www.redhat.com/mailman/listinfo/tux-list


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/




[Older Fedora Users Mail]     [Home]     [Fedora Legacy]     [Fedora Desktop]     [iPod Nano]     [ATA RAID]     [Fedora Bible]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Packaging]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

Powered by Linux

Google
  Web www.spinics.net