Hi there,

I have this problem on all my apache logs:

Invalid URI in request GET /../privatedir/languages/es_8204a7f13468b6f4b6fecda2fb69f56f.js?R

Basically, the problem seems that the locale module try to load a js file from the private files directory directly. See this source code:

<script type="text/javascript" src="/../privatedir/languages/es_8204a7f13468b6f4b6fecda2fb69f56f.js?R"></script>

But obviously, apache don´t have access directly to that dir /../ (under the drupal root base, outside the www dir).

Any idea of how to solve it? Thanks in advance!

Comments

andrewjsledge’s picture

Assigned: Unassigned » andrewjsledge
Status: Active » Closed (works as designed)
Issue tags: +systems administration

This is because the user running under the apache process (usually as apache or www-data) needs read access to all of the files it is told to serve. You need to give read access to apache for this directory. This is accomplished by either giving ownership of that directory to apache or changing the group of that directory to one of which apache is a member and the group has read access. The latter is the recommended solution for security reasons. For instance (as sudo or root):

groupadd -f privfiles
usermod -a -G privfiles apache
usermod -a -G privfiles <your account>
chgrp -R privfiles /path/to/privatedir
chmod g+r/path/to/privatedir