nginx reverse proxy not showing images.

rpr

Verified User
Joined
Oct 20, 2010
Messages
65
Hi,

I upgrade my apache2 mod_ruid to nginx_apache with modruid2.
Now the sites works perfectly except the images by drupal they can't load.
While on the same site using the 8080 port to connect to the apache2 directly it works just fine.

is it because nginx tries to read the images without apache2?
Apache2 runs as the user and nginx just as nginx user?

If I allow the everyone reads rights on the file the image works fine which I would prefer not to do (Install modruid2 for that reason).
 
It must be a permissions problem somewhere. What's the ownership and chmod of user directories in /home ?
 
Hello,

it is most likely you need to change public_html to 755 instead of 711.


Hi,

I upgrade my apache2 mod_ruid to nginx_apache with modruid2.
Now the sites works perfectly except the images by drupal they can't load.
While on the same site using the 8080 port to connect to the apache2 directly it works just fine.

is it because nginx tries to read the images without apache2?
Apache2 runs as the user and nginx just as nginx user?

If I allow the everyone reads rights on the file the image works fine which I would prefer not to do (Install modruid2 for that reason).
 
Code:
chmod 755 -R public_html
indeed fixes it. But isn't this less secure?

I come from apache2 with modruid where only the user has rights on the file. So 700 instead of 755?
Is it an idea to make nginx part of the usergroup? and make it 750 instead of 755?
 
Back
Top