[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1848
  • 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

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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