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

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,234
Location
LT, EU
It must be a permissions problem somewhere. What's the ownership and chmod of user directories in /home ?
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,818
Location
GMT +7.00
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).
 

rpr

Verified User
Joined
Oct 20, 2010
Messages
65
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?
 
Top