DocumentRoot outside of /usr/local/lsws

#21
Are the permissions currently set up for the user? I know you mentioned changing the permissions around, maybe it's an issue with setting the docroot to match the parent directory? (/home/user/html/ should be same user/group as /home/user)
 
#22
Yes, the permissions are correct... now i even created files as the user itself (su user)
Still 404 not found.
Not seeing any debug in logs at all... Not seeing anything :/, disturbs me!
 
#24
Now i added that access and error-log should be output to /home/user/-dir, it works OK, and user nobody:nobody writes to access-log (no errors thou)
 
#26
2017-02-14 16:06:58.456 [DEBUG] [192.168.175.165:56433#cgBoxCheck] Find context with URI: [/], location: [/home/user/cg/html/].
2017-02-14 16:06:58.456 [DEBUG] [192.168.175.165:56433#cgBoxCheck] (stat)File not found [/home/user/cg/html/index.html].
2017-02-14 16:06:58.456 [DEBUG] [192.168.175.165:56433#cgBoxCheck] Cannot find appropriate handler for [/index.html].

# pwd
/home/user/cg/html
[root@stefans html]# ls
index.html


It makes no sense at all :/ "file not found" but I SEEE IT!!! *drives me nuts*
 
#27
If you check what user the server is running as, could you su to that user and see if you can get to that directory? The only possible cause is permissions. (which would cause the server to think that the file does not exist)
 
#28
Hello again,

#su nobody
This account is currently not available.

Also, i chmodded the dir to nobody:nobody, but still without success.. i believe same as u, permissions...
 
#32
next questions would be about the directories above.

My stuff is in /home/user/wordpress/html:


drwxrwxr-x 7 user user 4096 Jan 12 09:03 wordpress/

drwxrwxr-x 9 user user 4096 Feb 13 09:15 html/

-rwxrw-rw- 1 user user 418 Jan 17 10:37 index.php
 
#33
next questions would be about the directories above.

My stuff is in /home/user/wordpress/html:


drwxrwxr-x 7 user user 4096 Jan 12 09:03 wordpress/

drwxrwxr-x 9 user user 4096 Feb 13 09:15 html/

-rwxrw-rw- 1 user user 418 Jan 17 10:37 index.php
i did find this thread (https://www.litespeedtech.com/suppo...ot-open-directory-for-uri-404-not-found.3762/)
which gave me this command (sudo -u nobody cat /home/user/cg/html/index.html), and this command gives me "permission denied" however i cant see why....

:/

So i am messing around with permissions, sorry for disturbing you so much ^^
 
#35
Let me know if you find a winning combination, this is an odd issue.
Well... if i CD to /home/user/html/ and "sudo -u nobody cat index.html" everything is OK, (i see html code)

if i however "sudo -u nobody cat /home/user/html/index.html", i get permission denied...

I have chmodded the files to user:nobody and added user to nobody-group, but still same error... Sadly theres not alot info on internet about this :/
 
Top