PDA

View Full Version : one domain working, the other not


karloff
01-09-2008, 02:24 PM
i have setup my server and have got one of my domains working but the other turns up a 404 error?

both ar the exact same
Virtual Host Name somedomain.com
Domain somedomain.com
Aliases not Set
Virtual Host Root $SERVER_ROOT/somedomain

any thoughts on what may be wrong.


also getting the follwoing errors
WARN [config:vhost:somedomain.com] Uid of /usr/local/lsws/somedomain/public/ is smaller than minimum requirement 11, use server uid!
WARN [config:vhost:somedomain.com] Uid of /usr/local/lsws/somedomain/public/ is smaller than minimum requirement 10, use server gid!
and ...
ERROR [config:vhost:somedomain:context:/] 'Ruby path' is not set properly, Rails context is disabled!

thanks in advance fo any ideas

mistwang
01-09-2008, 02:29 PM
check the owner of /usr/local/lsws/somedomain/public/, make sure it is not root or a system user with UID less than 11.

karloff
01-09-2008, 03:12 PM
check the owner of /usr/local/lsws/somedomain/public/, make sure it is not root or a system user with UID less than 11.

that solved the warnings, still can't get the second domain up and running tho

mistwang
01-09-2008, 03:20 PM
Turn on debug logging, see where it looks for the file.

Maye need to add directory index file?

karloff
01-09-2008, 03:36 PM
got it, its looking in

2008-01-08 19:11:05.408 [ERROR] [config:vhost:somedomain2.com] Path for document root is not accessible: /usr/local/lsws/somedomain2/public/public/

where do io remove the extra public bit?

mistwang
01-09-2008, 04:11 PM
Check anywhere you have "public" in your configuration. ;)

karloff
01-10-2008, 01:26 AM
ha ha, obviously i looked about. i found the VIRTAL HOST TEMPLATE - EasyRailsWithSuEXEC in general.

however i'm still stumpted to findout why on somedomain1 the domain shows fine so must be looking in somedomain1/public and the other doesn't show as its looking in somedomain2/public

strange, both virtual host templates are the excact same

karloff
01-11-2008, 02:25 PM
any other ideas?

mistwang
01-11-2008, 02:34 PM
Just remove the "public" appeared one by one,
when you define a rails vhost member from the template, make sure do not append public to the vhost root configuration. it should point to the root directory of your rails application.