Solved

403 - Forbidden - Lighttpd

Posted on 2010-09-04
4
1,692 Views
Last Modified: 2012-05-10
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
Comment
Question by:systemsautomation
  • 2
4 Comments
 
LVL 3

Expert Comment

by:gremwell
ID: 33603191
Does lighttpd process has read and execute privileges to /home/myhome/sites/mydomain.com/ directory?
0
 

Author Comment

by:systemsautomation
ID: 33603310
thanks for the reply.
/home/myhome/sites/mydomain.com has 777 privileges
0
 
LVL 4

Accepted Solution

by:
l4ncel0t earned 500 total points
ID: 33604010
777 for the whole path or just the last folder ?
0
 

Author Comment

by:systemsautomation
ID: 33604190
Thanks.

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

Thanks again for your help
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now