You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2014/09/19 13:12:48 UTC

[Bug 56996] New: FallbackResource should be allowed for and containers

https://issues.apache.org/bugzilla/show_bug.cgi?id=56996

            Bug ID: 56996
           Summary: FallbackResource should be allowed for <File> and
                    <Location> containers
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: mod_dir
          Assignee: bugs@httpd.apache.org
          Reporter: web@bachsau.name

I would like to set a global alias for robots.txt when it doesn't exist in the
web root. Now I'm forced to use mod_rewrite for it because of this random
limitation.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 56996] FallbackResource should be allowed for and containers

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56996

--- Comment #4 from Bachsau <we...@bachsau.name> ---
(In reply to Eric Covener from comment #3)

Hmm, okay. This looks like a confusing way of documenting things.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 56996] FallbackResource should be allowed for and containers

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56996

--- Comment #1 from jkaluza@redhat.com ---
Have you actually tried it? I think this might be documentation issue, because
for me it works as expected:

<Files "robots.txt">
    FallbackResource /fallback.txt
</Files>

# cat fallback.txt 
1

$ curl http://localhost/x/y/robots.txt
1

If it does not work for you, what's the particular problem you have with it?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 56996] FallbackResource should be allowed for and containers

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56996

--- Comment #2 from Bachsau <we...@bachsau.name> ---
Yu're right. I relied on the documentation and didn't even try it.

Not I added this to my httpd.conf and it works perfectly well:
<Location /robots.txt>
    FallbackResource /__global/norobots.txt
</Location>

This way, if a request to any virtual host would return 404, I can output a
file to block all robots. I try to avoid mod_rewrite whenever I can.

Is there a way to report on wrong documentation?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 56996] FallbackResource should be allowed for and containers

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56996

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Eric Covener <co...@gmail.com> ---
http://httpd.apache.org/docs/trunk/mod/directive-dict.html#Context

directory
    A directive marked as being valid in this context may be used inside
<Directory>, <Location>, <Files>, <If>, and <Proxy> containers in the server
configuration files, subject to the restrictions outlined in Configuration
Sections.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org