systemsautomation
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/mydoma in.com"
# server.errorlog = "/var/log/lighttpd/error_d omain.log"
# accesslog.filename = "/var/log/lighttpd/access_ domain.log "
}
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/mydoma
# server.errorlog = "/var/log/lighttpd/error_d
# accesslog.filename = "/var/log/lighttpd/access_
}
Does lighttpd process has read and execute privileges to /home/myhome/sites/mydomai n.com/ directory?
ASKER
thanks for the reply.
/home/myhome/sites/mydomai n.com has 777 privileges
/home/myhome/sites/mydomai
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks.
I changed the vhost folder outside home and gave it 777 and it worked.
Thanks again for your help
I changed the vhost folder outside home and gave it 777 and it worked.
Thanks again for your help