New to linode and linux
My problem is, the tutorial told me to use /srv/www/domain.com
so i change all my nginx.conf and related files to reflect that but upon going to my own
so what do i have to do to be able to use /srv/www/domain.com only?
and for users it says…
user nobody;
worker_processes 1;
some tutorials tell me to do www-data www-data, and others are nginx nginx, so how do i find out what user to use?
thanks in advance. i really did try to figure it out and searched google and forum before posting,
3 Replies
is there anyone that can help me resolve my problem?
Ubuntu and other Debian-based distributions use a different filesystem layout than what most source code tarballs assume. This can lead to files being deposited in unexpected places when installed from source.
On Debian/Ubuntu, everything web-related is run by the user "www-data" (which may have some security benefits over nobody) and served from "/var/www" by default. It's just a convention, and you don't have to follow it, but you'd have to be careful with file permissions and such.
BTW, the www problem can probably be solved by adding the www version of your domain to the "server_name" line of your website configuration and reload it. Otherwise, nginx will treat the www version and the non-www version as different websites.