Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

403 - Forbidden - Lighttpd

Posted on 2010-09-04
Last Modified: 2012-05-10

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"
Question by:systemsautomation
  • 2

Expert Comment

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

Author Comment

ID: 33603310
thanks for the reply.
/home/myhome/sites/mydomain.com has 777 privileges

Accepted Solution

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

Author Comment

ID: 33604190

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

Thanks again for your help

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LINUX backups with VEEAM 8 118
ftp to port 21 4 53
How to check currently configured static routes on CentOS 7? 1 51
Migrating a Linux server to VMware 3 54
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

839 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