Solved

403 - Forbidden - Lighttpd

Posted on 2010-09-04
4
1,682 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
Comment Utility
Does lighttpd process has read and execute privileges to /home/myhome/sites/mydomain.com/ directory?
0
 

Author Comment

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

Accepted Solution

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

Author Comment

by:systemsautomation
Comment Utility
Thanks.

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

Thanks again for your help
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

762 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

11 Experts available now in Live!

Get 1:1 Help Now