LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > [solved] Second domain - 404 not found

Reply
 
Thread Tools Display Modes
  #1  
Old 03-10-2013, 02:19 PM
nikoc1337 nikoc1337 is offline
Member
 
Join Date: Oct 2012
Posts: 10
Default [solved] Second domain - 404 not found

Hey guys. I decided to add a second domain on my server, i configured a new vhost and a new vhost template, also added the domain to the listener.
But i'am getting a 404 error not found when i visit the domain. On the LSWS Adm console there is not any error.
Could it be some permission issue?

Last edited by NiteWave; 03-11-2013 at 06:55 PM..
Reply With Quote
  #2  
Old 03-10-2013, 04:23 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Not likely. Permission issue will show 403 error instead of 404. check /usr/local/lsws/logs/error.log from command line for more error context.
Reply With Quote
  #3  
Old 03-10-2013, 04:49 PM
nikoc1337 nikoc1337 is offline
Member
 
Join Date: Oct 2012
Posts: 10
Quote:
Originally Posted by webizen View Post
Not likely. Permission issue will show 403 error instead of 404. check /usr/local/lsws/logs/error.log from command line for more error context.
Ok so just checked it out

Code:
013-03-11 01:47:20.204 [ERROR] [HTAccess] Failed to open [/home/mydomain/public_html/.htaccess]: Permission denied
2013-03-11 01:47:20.204 [INFO] [****:38750-0#mydomain] File not found [/home/mydomain/public_html/]
2013-03-11 01:47:20.204 [INFO] [****4:38750-0#mydomain] Cannot found appropriate handler for [/]
.htaccess is owned by the user the domain is added to. and the folder /hoem/mydomain/public_html exists.
Reply With Quote
  #4  
Old 03-10-2013, 05:17 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
maybe hoem is a typo in your previous post. but point out just in case.

pls check their permission and ownership:
Quote:
ls -ld /home/mydomain/
ls -ld /home/mydomain/public_html
ls -l /home/mydomain/public_html/.htaccess

Last edited by webizen; 03-10-2013 at 05:19 PM..
Reply With Quote
  #5  
Old 03-11-2013, 08:35 AM
nikoc1337 nikoc1337 is offline
Member
 
Join Date: Oct 2012
Posts: 10
Quote:
Originally Posted by webizen View Post
maybe hoem is a typo in your previous post. but point out just in case.

pls check their permission and ownership:
Code:
drwx------ 6 mydomain mydomain 4096 Mar 11 01:30 /home/mydomain
drwxr-xr-x 2 mydomain mydomain 4096 Mar 10 23:13 /home/mydomain/public_html
-rw-r--r-- 1 mydomain mydomain 0 Mar 10 22:38 /home/mydomain/public_html/.htaccess
Edit: Resolved. I did chmod 755 /home/mydomain and it's all cool

Thanks for the help!

Last edited by nikoc1337; 03-11-2013 at 08:46 AM..
Reply With Quote
  #6  
Old 03-11-2013, 09:56 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Quote:
Originally Posted by nikoc1337 View Post
Code:
drwx------ 6 mydomain mydomain 4096 Mar 11 01:30 /home/mydomain
drwxr-xr-x 2 mydomain mydomain 4096 Mar 10 23:13 /home/mydomain/public_html
-rw-r--r-- 1 mydomain mydomain 0 Mar 10 22:38 /home/mydomain/public_html/.htaccess
Edit: Resolved. I did chmod 755 /home/mydomain and it's all cool

Thanks for the help!
Thanks for the update. 711 for /home/mydomain should be good enough. or for better security, 710 for /home/mydomain with group owned by nobody (web server user).
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:13 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.