You are not logged in.

#1 2014-03-20 00:08:01

Registered: 2013-05-15
Posts: 1

Chrooted nginx: web root question

Dear community,

A newbie question: I've just set up nginx on a RasPi in a chroot (following the wiki). All runs well and I'm happy.
However, I'm not quite sure I understand the purposes of the two different dirs that contain index.html after the chrooting operation.

Am I correct in thinking that /srv/http/usr/share/nginx/html/ is the "web root", i.e., is the root folder for publicly visible files, e.g., index.html? If so, what purpose does /srv/http/www serve?

Many thanks for any explanation!


#2 2014-07-19 23:20:18

From: UK
Registered: 2013-07-26
Posts: 100

Re: Chrooted nginx: web root question

Apologies to admin if I'm necrobumping this topic.

The way how I see it (and also I used to use nginx like that):

/srv/http/usr/share/nginx/html/ is for files like errors messages.
/srv/http/www is for your web pages/applications.

Last edited by Gregosky (2014-07-22 00:28:18)


Board footer

Powered by FluxBB