403 - Forbidden - Lighttpd

Hi

I am using Lighttpd on Centos 5.5.

when I write http://myserver.com/abc (abc is the name of folder) it shows me the folder in the browser.
However when I define a virtual host and write http://myvirtualhost.com/abc it shows "403 - Forbidden"

Please help me in solving this issue.

I have written the following at the bottom of lighttpd.conf


$HTTP["host"] =~ "www\.mydomain\.com$" {
server.document-root = "/home/myhome/sites/mydomain.com"
#    server.errorlog = "/var/log/lighttpd/error_domain.log"
#    accesslog.filename = "/var/log/lighttpd/access_domain.log"
}
systemsautomationAsked:
Who is Participating?
 
l4ncel0tCommented:
777 for the whole path or just the last folder ?
0
 
gremwellCommented:
Does lighttpd process has read and execute privileges to /home/myhome/sites/mydomain.com/ directory?
0
 
systemsautomationAuthor Commented:
thanks for the reply.
/home/myhome/sites/mydomain.com has 777 privileges
0
 
systemsautomationAuthor Commented:
Thanks.

I changed the vhost folder outside home and gave it 777 and it worked.

Thanks again for your help
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.