On Thu, 7 Apr 2016 21:28:23 +0200, you wrote:

>
>> Le 7 avr. 2016 à 21:07, Ben RUBSON <[email protected]> a écrit :
>> 
>>>> What I would like to avoid is the entry in the error log for 
>>>> /additional/path/info which does not exist.
>>> 
>>> What entry?
>> 
>> Hello Eric,
>> 
>> These messages :
>> client denied by server configuration: /my_document_root/additional/path/info
>> 
>> Only /my_document_root/api/ and some other paths are available for requests.
>
>In addition, why does Apache makes internal request on PATH_INFO ?
>
>Thank you !

Do you have a construction like:

<VirtualHost *:80>
   ServerName    somesite
   ServerAdmin   [email protected]
   DocumentRoot "/var/www/html/somesite"
   AliasMatch ^/(.*) "/var/www/html/somesite/index.php/$1"
   <Directory "/var/www/html/somesite">
      AllowOverride None
      Order deny,allow
      Deny from all
      Allow from all
      <FilesMatch "^.*$>
         ForceType application/x-httpd-php
      </FilesMatch>
   </Directory>
</VirtualHost>

Then, the script is supposed to evaluate 
$_SERVER['PATH_INFO'] and $_SERVER['QUERY_STRING']

(it doesn't have to be PHP and a virtual host, but I happened to
have this code at hand. Replace whatever you have to replace).
If that doesn't work, please show your config.

-- 
Regards,
Kees Nuyt

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to