• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1864
  • Last Modified:

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"
}
0
systemsautomation
Asked:
systemsautomation
  • 2
1 Solution
 
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
 
l4ncel0tCommented:
777 for the whole path or just the last folder ?
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.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now