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 2015/11/02 15:39:03 UTC

[Bug 58574] New: Apache error AH01630 (client denied) but working

https://bz.apache.org/bugzilla/show_bug.cgi?id=58574

            Bug ID: 58574
           Summary: Apache error AH01630 (client denied) but working
           Product: Apache httpd-2
           Version: 2.4.7
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Runtime Config
          Assignee: bugs@httpd.apache.org
          Reporter: damien.bruchet@gmail.com

I have got something strange here. I have an API working on
https://mydomain.test/rest.php

Everything goes well but for each call to my API, there is a new line in my
apache error.log. Example: call GET "https://mydomain.test/rest.php/Test"

It works, but add this line in the apache error.log:

[Mon Nov 02 15:06:58.056250 2015] [authz_core:error] [pid 17148] [client
xxx.xxx.xxx.xxx:52446] AH01630: client denied by server configuration:
/var/www/html/myproject/front/Test

My project is located at /var/www/html/myproject.

Here is my apache configuration:


<IfModule mod_ssl.c>
<VirtualHost _default_:443>
    ServerAdmin support@mydomain.test
    ServerName mydomain.test

    DocumentRoot /var/www/html/myproject/front

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/my.crt
    SSLCertificateKeyFile /etc/ssl/private/my.key
    SSLCertificateChainFile /etc/ssl/certs/mychain.crt


    <FilesMatch "\.(cgi|shtml|phtml|php)$">
            SSLOptions +StdEnvVars
    </FilesMatch>
    <Directory /usr/lib/cgi-bin>
            SSLOptions +StdEnvVars
    </Directory>


    BrowserMatch "MSIE [2-6]" \
            nokeepalive ssl-unclean-shutdown \
            downgrade-1.0 force-response-1.0
    # MSIE 7 and newer should be able to use keepalive
    BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown


    <Directory /var/www/html/myproject/>
        Require all denied
    </Directory>

    <Directory /var/www/html/myproject/front/>
        Require all denied

        <Files rest.php>
                Require all granted
        </Files>
    </Directory>

</VirtualHost>


While searching for solution I found some people having same trouble, but every
solutions mentioned was to ignore the line, or reduce the log level (this is
not an option in my case ;).

I noticed that apache is stripping the "rest.php" from the path, but i can't
figured it out. Why is this happened?

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