Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Security Q: Permissions for proxy

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
MyKEcz
Posts: 18
Joined: Fri Apr 04, 2014 8:30 am

Security Q: Permissions for proxy
  • Quote

Post by MyKEcz » Fri Apr 04, 2014 9:42 am

Hi guys,

first thing first I must thank you for the great project. Vesta has incredible boosted my sites and I hope you release soon 0.9.9-9 with FPM support.

I have only one question about security. If you enable proxy to website, you must set on every file (image, javascript, movies, ...) permissions to 775. If you don't have these permissions, error in log appear and media won't load:
[error] 21284#0: *7 open() "/home/xxx/web/domain.tld/public_html/images/icons/misc/star.gif" failed (13: Permission denied), client: xx.xx.xx.xx, server: domain.org, request: "GET //images/icons/misc/star.gif HTTP/1.1",
So my question is about permissions. Can I set to every file recursively chmod -R 775 /home/user/web/ ? Media are okay but php scripts and configuration php files will be in threat I think.

Can you explain me if it's safe method or not? Because if you normally copy via SCP/SFPT files you must manually set 775 to them, because they have in default 644/600.

Thank you for explanation.

(Debian 7.4)
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: Security Q: Permissions for proxy
  • Quote

Post by imperio » Fri Apr 04, 2014 4:20 pm

Hi,
You can use chmod 755 for folders and 644 for files
for folders images, icons, and misc you can use chmod 777
Top

MyKEcz
Posts: 18
Joined: Fri Apr 04, 2014 8:30 am

Re: Security Q: Permissions for proxy
  • Quote

Post by MyKEcz » Fri Apr 04, 2014 4:27 pm

imperio wrote:Hi,
You can use chmod 755 for folders and 644 for files
for folders images, icons, and misc you can use chmod 777
Thank you for fast reply. I will follow your advice. I have idea for new feature, I'll post it in relevant section.
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: Security Q: Permissions for proxy
  • Quote

Post by imperio » Fri Apr 04, 2014 5:09 pm

You can add new suggestion in our bugtracker
https://bugs.vestacp.com/
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password