Link to home
Start Free TrialLog in
Avatar of systemsautomation
systemsautomationFlag for Pakistan

asked on

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"
}
Avatar of gremwell
gremwell

Does lighttpd process has read and execute privileges to /home/myhome/sites/mydomain.com/ directory?
Avatar of systemsautomation

ASKER

thanks for the reply.
/home/myhome/sites/mydomain.com has 777 privileges
ASKER CERTIFIED SOLUTION
Avatar of l4ncel0t
l4ncel0t

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks.

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

Thanks again for your help