Mailing List Archive

virtual servers give 404 for everything
I'm not sure if I've got the right list, but here goes.

I am running Lubuntu 12.04 and have just installed Cherokee 1.2.101 from
Ubuntu Software Centre.
I have set up my 4 virtual servers with
doc root: /media/.../domains/<domain-name>/public_html/
and logs: /media/.../domains/<domain-name>/logs/access.log
and I have modified my hosts file to direct <domain name> to 127.0.0.1

I can browse from this machine to http://localhost:9090 OK
and the default server with http://localhost OK,
but everything else is "404 Not Found".
The logs are being written to OK:
127.0.0.1 - - [24/Aug/2012:07:15:14 +1000] "GET / HTTP/1.1" 404 540 "-"
"Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:14.0) Gecko/20100101
Firefox/14.0.1"

If I put
file:///media/.../domains/mydomain1.com/public_html/index.htm
into my browser, the page loads OK.

I imagine this is a permissions problem,
but Cherokee could have told me if it was getting "access denied" and it
didn't,
so I'm not sure.

The documentation doesn't seem to cover failure at such an early stage
of configuration.

I am running this system live on Win7 and Fastream IQ web server and
would like to migrate it.




_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: virtual servers give 404 for everything [ In reply to ]
If you go to localhost, do you see the correct test page with images?

Stefan
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: virtual servers give 404 for everything [ In reply to ]
Yes.
I have changed the default server's doc root to /var/www/default/
and moved the index.html in there.
And if I add files to /var/www/default/ they are accessible.

Update

/media/.../domains is owned by me:me and I think it should be
www-data:www-data
so I add me to Group www-data, and www-data to me for luck,
change ownership to www-data:www-data
change permissions to 775 (is this correct ?)
====
sudo adduser me www-data
sudo chown -R www-data:www-data /media/.../domains
sudo chmod -R 0775 /media/.../domains
====
and all appears to work in the terminal,
but my file manager seems to shows nothing has changed.

/media/.../ is actually a Truecrypt container file mounted as a drive.
Could this make it unchangeable ?

Anyway, in desperation I changed Admin > General > Permissions >
User to "me", and Group to "me"
and the server seems to be working OK now.
Is this what you are supposed to do ?
Any security issues I should be aware of ?

Dave

On 24/08/12 11:01, Stefan de Konink wrote:
> If you go to localhost, do you see the correct test page with images?
>
> Stefan
>