I am trying to set up Nginx for a reseller scenario. The reseller will
get his own root, and be able to
create his versions of any file on the site, or, by leaving the file
out, simply have the basic one used
instead. My test configuration is below, and it so nearly works!
The URL reseller.anake.hcs does not result in serving
…coachmaster3dev/htdocs/index.php as I want,
but in a 403 Forbidden error.
iirc there is something with the order/length of location $var {} -
content.
is there an index.php in /home/ian/websites/reseller/htdocs?
what is the dir_permissions from /home/ian/websites/reseller/htdocs?
what are the file_permissions for
/home/ian/websites/coachmaster3dev/htdocs/index.php?
what is the dir_permissions home/ian/websites/coachmaster3dev/htdocs?
iirc there is something with the order/length of location $var {} -
content.
I have tried moving the location / to the first position, but that
changed nothing.
is there an index.php in /home/ian/websites/reseller/htdocs?
No, but when I create one, it is served.
I don’t want to create one unless it is necessary for reseller’s
configuration.
what is the dir_permissions from /home/ian/websites/reseller/htdocs?
775 if I specify the file, it is served as required.
what are the file_permissions for
/home/ian/websites/coachmaster3dev/htdocs/index.php?
744
what is the dir_permissions home/ian/websites/coachmaster3dev/htdocs?
777
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3349 / Virus Database: 3204/6500 - Release Date: 07/17/13
–
Ian H.
31 Sheerwater, Northampton NN3 5HU,
Tel: 01604 513875
Preparing eBooks for Kindle and ePub formats to give the best reader
experience.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.