Welcome! Log In Create A New Profile

Advanced

Re: Why does nginx work at the server IP address only with default root location?

April 21, 2013 04:16PM
Steve, you are a Linux genius, and I am but a humble plebe, forever in
your debt.

On Sun, Apr 21, 2013 at 1:09 PM, Steve Holdoway <steve@greengecko.co.nz> wrote:
> At a guess, /var or /var/www isn't readable by www-data
>
> Steve
>
> On 22/04/2013, at 7:50 AM, "Paul N. Pace" <paulnpace@gmail.com> wrote:
>
>> I have set up a server on Rackspace using Ubuntu 12.04 and the nginx stable PPA.
>>
>> Using the default root location of /usr/share/nginx/html the
>> index.html file is displayed when I call the public IP address of the
>> server.
>>
>> If I change the root location to my own /var/www/example.com/public
>> the index.html file is not displayed.
>>
>> Output of ll on /var/www/example.com/public:
>>
>> drwxrwsr-x 2 www-data www-data 4096 Apr 21 04:13 ./
>> drwxrwsr-x 7 www-data www-data 4096 Apr 21 03:55 ../
>> -rw-rw-r-- 1 www-data www-data 624 Apr 21 04:17 index.html
>>
>> This is the only change I make and I get the failure, but I don't
>> expect it. What am I doing wrong?
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Why does nginx work at the server IP address only with default root location?

openletter April 21, 2013 03:52PM

Re: Why does nginx work at the server IP address only with default root location?

GreenGecko April 21, 2013 04:10PM

Re: Why does nginx work at the server IP address only with default root location?

openletter April 21, 2013 04:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 160
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready