httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 59785] mod_authz_core scoping - ???
Date Sun, 03 Jul 2016 12:33:38 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=59785

--- Comment #2 from AR <anrdaemon@yandex.ru> ---
I can't seem to use anything, it claims that I have included my directives in
"RequireAny" which I definitely did not.
No matter how I read the documentation, the results doesn't change.

Server version: Apache/2.4.20 (Ubuntu)
Server built:   2016-05-05T00:00:00

Output of config test was:
AH00526: Syntax error on line 14 of
/etc/apache2/sites-enabled/ccenter.msk.ru.conf:
negative Require directive has no effect in <RequireAny> directive
Action 'configtest' failed.
The Apache error log may have more information.

<VirtualHost *:80>
    ServerName example.com

    DocumentRoot /home/ccenter/htdocs

    <Directory /home/ccenter/htdocs>
        DirectoryIndex /index.html /index.php

        <Files ~ "\.php$">
            SetHandler "proxy:fcgi://127.8.0.1:1001/"
        </Files>

        # Deny abusive crawlers.
        Require not ip 198.27.101.168
        Require not ip 95.27.49.224

    </Directory>

    <Location "/">
        SetHandler "proxy:fcgi://127.8.0.1:1001/home/ccenter/htdocs/index.php"
    </Location>

    <Directory /home/ccenter/htdocs/content/handmade>
        Require all denied
    </Directory>

    <Directory /home/ccenter/htdocs/tpl>
        Require all denied
    </Directory>

    <Directory /home/ccenter/htdocs/upload>
        <Files ~ "\.php$">
            Require all denied
        </Files>
    </Directory>

</VirtualHost>

# grep -vRP "^\s*#" /etc/apache2/*.conf /etc/apache2/*-enabled/ | grep -iC 3
"require"
/etc/apache2/apache2.conf:<Directory />
/etc/apache2/apache2.conf:    Options FollowSymLinks
/etc/apache2/apache2.conf:    AllowOverride None
/etc/apache2/apache2.conf:    Require all denied
/etc/apache2/apache2.conf:</Directory>
/etc/apache2/apache2.conf:
/etc/apache2/apache2.conf:<Directory /usr/share>
/etc/apache2/apache2.conf:    AllowOverride None
/etc/apache2/apache2.conf:    Require all granted
/etc/apache2/apache2.conf:</Directory>
/etc/apache2/apache2.conf:
/etc/apache2/apache2.conf:<Directory /var/www/>
/etc/apache2/apache2.conf:    Options Indexes FollowSymLinks
/etc/apache2/apache2.conf:    AllowOverride None
/etc/apache2/apache2.conf:    Require all granted
/etc/apache2/apache2.conf:</Directory>
/etc/apache2/apache2.conf:
/etc/apache2/apache2.conf:
--
/etc/apache2/apache2.conf:AccessFileName .htaccess
/etc/apache2/apache2.conf:
/etc/apache2/apache2.conf:<FilesMatch "^\.ht">
/etc/apache2/apache2.conf:    Require all denied
/etc/apache2/apache2.conf:</FilesMatch>
/etc/apache2/apache2.conf:
/etc/apache2/apache2.conf:
--
/etc/apache2/conf-enabled/serve-cgi-bin.conf:        <Directory
"/usr/lib/cgi-bin">
/etc/apache2/conf-enabled/serve-cgi-bin.conf:            AllowOverride None
/etc/apache2/conf-enabled/serve-cgi-bin.conf:            Options +ExecCGI
-MultiViews +SymLinksIfOwnerMatch
/etc/apache2/conf-enabled/serve-cgi-bin.conf:            Require all granted
/etc/apache2/conf-enabled/serve-cgi-bin.conf:        </Directory>
/etc/apache2/conf-enabled/serve-cgi-bin.conf:    </IfDefine>
/etc/apache2/conf-enabled/serve-cgi-bin.conf:</IfModule>
--
/etc/apache2/mods-enabled/alias.conf:    <Directory "/usr/share/apache2/icons">
/etc/apache2/mods-enabled/alias.conf:        Options FollowSymlinks
/etc/apache2/mods-enabled/alias.conf:        AllowOverride None
/etc/apache2/mods-enabled/alias.conf:        Require all granted
/etc/apache2/mods-enabled/alias.conf:    </Directory>
/etc/apache2/mods-enabled/alias.conf:
/etc/apache2/mods-enabled/alias.conf:</IfModule>
--
/etc/apache2/mods-enabled/status.conf:
/etc/apache2/mods-enabled/status.conf:    <Location /server-status>
/etc/apache2/mods-enabled/status.conf:        SetHandler server-status
/etc/apache2/mods-enabled/status.conf:        Require local
/etc/apache2/mods-enabled/status.conf:    </Location>
/etc/apache2/mods-enabled/status.conf:
/etc/apache2/mods-enabled/status.conf:    ExtendedStatus On

-- 
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


Mime
View raw message