lighttpd forum lighty > Can't start Lighty - Blocks on config script

Posted by Charles (Guest)
on 12.09.2006 13:02
I just installed Lighty on my computer but Lighty won't start:

[code][root@centos ~]# service lighttpd start
Starting lighttpd: 2006-09-12 09:58:24: (config.c.648) line: 40 pos: 1 
invalid value field
2006-09-12 09:58:24: (config.c.730) configfile parser failed
                                                           [FAILED]
[root@centos ~]#[/code]

Here is my config file:

[code]

# lighttpd configuration file
#
# use a it as base for lighttpd 1.0.0 and above
#
# $Id: lighttpd.conf,v 1.7 2004/11/03 22:26:05 weigon Exp $

############ Options you really have to take care of 
####################

## modules to load
# at least mod_access and mod_accesslog should be loaded
# all other module should only be loaded if really neccesary
# - saves some time
# - saves memory
server.modules              = (
#                               "mod_rewrite",
#                               "mod_redirect",
#                               "mod_alias",
                                "mod_access",
#                               "mod_cml",
#                               "mod_trigger_b4_dl",
#                               "mod_auth",
#                               "mod_status",
#                               "mod_setenv",
                               "mod_fastcgi",
#                               "mod_proxy",
#                               "mod_simple_vhost",
#                               "mod_evhost",
#                               "mod_userdir",
#                               "mod_cgi",
#                               "mod_compress",
#                               "mod_ssi",
#                               "mod_usertrack",
#                               "mod_expire",
#                               "mod_secdownload",
#                               "mod_rrdtool",
#                                "mod_accesslog" )

## a static document-root, for virtual-hosting take look at the
## server.virtual-* options
server.document-root        = "/home/charles/www/"

## where to send error-messages to
#server.errorlog             = "/var/log/lighttpd/error_log"

# files to check for if .../ is requested
server.indexfiles           = ( "index.php", "index.html",
                                "index.htm", "default.htm" )

# mimetype mapping
mimetype.assign             = (
  ".rpm"          =>      "application/x-rpm",
  ".pdf"          =>      "application/pdf",
  ".sig"          =>      "application/pgp-signature",
  ".spl"          =>      "application/futuresplash",
  ".class"        =>      "application/octet-stream",
  ".ps"           =>      "application/postscript",
  ".torrent"      =>      "application/x-bittorrent",
  ".dvi"          =>      "application/x-dvi",
  ".gz"           =>      "application/x-gzip",
  ".pac"          =>      "application/x-ns-proxy-autoconfig",
  ".swf"          =>      "application/x-shockwave-flash",
  ".tar.gz"       =>      "application/x-tgz",
  ".tgz"          =>      "application/x-tgz",
  ".tar"          =>      "application/x-tar",
  ".zip"          =>      "application/zip",
  ".mp3"          =>      "audio/mpeg",
  ".m3u"          =>      "audio/x-mpegurl",
  ".wma"          =>      "audio/x-ms-wma",
  ".wax"          =>      "audio/x-ms-wax",
  ".ogg"          =>      "application/ogg",
  ".wav"          =>      "audio/x-wav",
  ".gif"          =>      "image/gif",
  ".jpg"          =>      "image/jpeg",
  ".jpeg"         =>      "image/jpeg",
  ".png"          =>      "image/png",
  ".xbm"          =>      "image/x-xbitmap",
  ".xpm"          =>      "image/x-xpixmap",
  ".xwd"          =>      "image/x-xwindowdump",
  ".css"          =>      "text/css",
  ".html"         =>      "text/html",
  ".htm"          =>      "text/html",
  ".js"           =>      "text/javascript",
  ".asc"          =>      "text/plain",
  ".c"            =>      "text/plain",
  ".cpp"          =>      "text/plain",
  ".log"          =>      "text/plain",
  ".conf"         =>      "text/plain",
  ".text"         =>      "text/plain",
  ".txt"          =>      "text/plain",
  ".dtd"          =>      "text/xml",
  ".xml"          =>      "text/xml",
  ".mpeg"         =>      "video/mpeg",
  ".mpg"          =>      "video/mpeg",
  ".mov"          =>      "video/quicktime",
  ".qt"           =>      "video/quicktime",
  ".avi"          =>      "video/x-msvideo",
  ".asf"          =>      "video/x-ms-asf",
  ".asx"          =>      "video/x-ms-asf",
  ".wmv"          =>      "video/x-ms-wmv",
  ".bz2"          =>      "application/x-bzip",
  ".tbz"          =>      "application/x-bzip-compressed-tar",
  ".tar.bz2"      =>      "application/x-bzip-compressed-tar"
 )

# Use the "Content-Type" extended attribute to obtain mime type if 
possible
#mimetype.use-xattr        = "enable"


## send a different Server: header
## be nice and keep it at lighttpd
#server.tag                 = "lighttpd"

#### accesslog module
#accesslog.filename          = "/var/log/lighttpd/access_log"

## deny access the file-extensions
#
# ~    is for backupfiles from vi, emacs, joe, ...
# .inc is often used for code includes which should in general not be 
part
#      of the document-root
url.access-deny             = ( "~", ".inc" )

$HTTP["url"] =~ "\.pdf$" {
  server.range-requests = "disable"
}

######### Options that are good to be but not neccesary to be changed 
#######

## bind to port (default: 80)
#server.port                = 81

## bind to localhost (default: all interfaces)
#server.bind                = "grisu.home.kneschke.de"

## error-handler for status 404
#server.error-handler-404   = "/error-handler.html"
#server.error-handler-404   = "/error-handler.php"

## to help the rc.scripts
server.pid-file             = "/var/run/lighttpd.pid"


###### virtual hosts
##
##  If you want name-based virtual hosting add the next three settings 
and load
##  mod_simple_vhost
##
## document-root =
##   virtual-server-root + virtual-server-default-host + 
virtual-server-docroot
## or
##   virtual-server-root + http-host + virtual-server-docroot
##
#simple-vhost.server-root   = "/home/weigon/wwwroot/servers/"
#simple-vhost.default-host  = "grisu.home.kneschke.de"
#simple-vhost.document-root = "/pages/"


##
## Format: <errorfile-prefix><status-code>.html
## -> ..../status-404.html for 'File not found'
#server.errorfile-prefix    = 
"/home/weigon/projects/lighttpd/doc/status-"

## virtual directory listings
#server.dir-listing         = "enable"

## enable debugging
#debug.log-request-header   = "enable"
#debug.log-response-header  = "enable"
#debug.log-request-handling = "enable"
#debug.log-file-not-found   = "enable"

### only root can use these options
#
# chroot() to directory (default: no chroot() )
#server.chroot              = "/"

## change uid to <uid> (default: don't care)
server.username             = "lighttpd"

## change uid to <uid> (default: don't care)
server.groupname            = "lighttpd"

#### compress module
#compress.cache-dir         = "/tmp/lighttpd/cache/compress/"
#compress.filetype          = ("text/plain", "text/html")

#### proxy module
## read proxy.txt for more info
#proxy.server               = ( ".php" =>
#                               ( "localhost" =>
#                                 (
#                                   "host" => "192.168.0.101",
#                                   "port" => 80
#                                 )
#                               )
#                             )

#### fastcgi module
## read fastcgi.txt for more info
fastcgi.server             = ( ".php" =>
                               ( "localhost" =>
                                 (
                                   "socket" => 
"/tmp/php-fastcgi.socket",
                                   "bin-path" => "/usr/bin/php-cgi"
                                 )
                               )
                            )

#### CGI module
#cgi.assign                 = ( ".pl"  => "/usr/bin/perl",
#                               ".cgi" => "/usr/bin/perl" )
#

#### SSL engine
#ssl.engine                 = "enable"
#ssl.pemfile                = "server.pem"

#### status module
#status.status-url          = "/server-status"
#status.config-url          = "/server-config"

#### auth module
## read authentication.txt for more info
#auth.backend               = "plain"
#auth.backend.plain.userfile = "lighttpd.user"
#auth.backend.plain.groupfile = "lighttpd.group"

#auth.backend.ldap.hostname = "localhost"
#auth.backend.ldap.base-dn  = "dc=my-domain,dc=com"
#auth.backend.ldap.filter   = "(uid=$)"

#auth.require               = ( "/server-status" =>
#                               (
#                                 "method"  => "digest",
#                                 "realm"   => "download archiv",
#                                 "require" => "user=jan"
#                               ),
#                               "/server-info" =>
#                               (
#                                 "method"  => "digest",
#                                 "realm"   => "download archiv",
#                                 "require" => "valid-user"
#                               )
#                             )

#### url handling modules (rewrite, redirect, access)
#url.rewrite                = ( "^/$"             => "/server-status" )
#url.redirect               = ( "^/wishlist/(.+)" => 
"http://www.123.org/$1" )

#
# define a pattern for the host url finding
# %% => % sign
# %0 => domain name + tld
# %1 => tld
# %2 => domain name without tld
# %3 => subdomain 1 name
# %4 => subdomain 2 name
#
#evhost.path-pattern        = "/home/storage/dev/www/%3/htdocs/"

#### expire module
#expire.url                 = ( "/buggy/" => "access 2 hours", 
"/asdhas/" => "access plus 1 seconds 2 minutes")

#### ssi
#ssi.extension              = ( ".shtml" )

#### rrdtool
#rrdtool.binary             = "/usr/bin/rrdtool"
#rrdtool.db-name            = "/var/www/lighttpd.rrd"

#### setenv
#setenv.add-request-header  = ( "TRAV_ENV" => "mysql://user@host/db" )
#setenv.add-response-header = ( "X-Secret-Message" => "42" )

## for mod_trigger_b4_dl
# trigger-before-download.gdbm-filename = 
"/home/weigon/testbase/trigger.db"
# trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
# trigger-before-download.trigger-url = "^/trigger/"
# trigger-before-download.download-url = "^/download/"
# trigger-before-download.deny-url = "http://127.0.0.1/index.html"
# trigger-before-download.trigger-timeout = 10

## for mod_cml
## don't forget to add index.cml to server.indexfiles
# cml.extension               = ".cml"
# cml.memcache-hosts          = ( "127.0.0.1:11211" )


[/code]

This happened on 2 computers.
Thanks,
Posted by Charles (Guest)
on 12.09.2006 13:03
Maybe I should add that /home/charles/www exists.
Posted by Baptiste Augrain
on 12.09.2006 15:26
Charles wrote:
> Maybe I should add that /home/charles/www exists.

or maybe lighttpd don't have access to the directory
Posted by Don Pedro
on 12.09.2006 17:13
server.modules closing bracket is commented.
Posted by Charles (Guest)
on 12.09.2006 19:04
Vyacheslav Chernousov wrote:
> server.modules closing bracket is commented.

Thank you, now I'm able to start Lighty:

[root@centos ~]# service lighttpd start
Starting lighttpd:                                         [  OK  ]
[root@centos ~]#

But when I access http://127.0.0.1/ or http://localhost/, I get this 
error message in my browser:

403 - Forbidden

I did this:

[root@centos ~]# chmod 777 ~charles/www
[root@centos ~]# service lighttpd restart
Stopping lighttpd:                                         [  OK  ]
Starting lighttpd:                                         [  OK  ]
[root@centos ~]#

Which didn't solve my problem....
Posted by Don Pedro
on 12.09.2006 19:09
1) chmod 777 ~charles/www will chmod 777 only for directory. But I think
you wanted to chmod directory and it's contents recursively. Use -R
switch for this: chmod -R 777 ~charles/www

2) Be sure lighttpd is able to access your home dir. You can "su -" with 
the lighttpd user to check this:

su - %lighttpd_user_name%
ls -la /home/charles/www

please replace %lighttpd_user_name% with real username which lighttpd 
works from.

3) It is possible that you have no index file in this directory. Check
your server.indexfiles in lighttpd config and be sure you have any of
those files existing in that directory.

4) Good luck ;)
Posted by Charles (Guest)
on 12.09.2006 19:50
Vyacheslav Chernousov wrote:
> 1) chmod 777 ~charles/www will chmod 777 only for directory. But I think
> you wanted to chmod directory and it's contents recursively. Use -R
> switch for this: chmod -R 777 ~charles/www


Thank you. Ok, I've chmodded recursively now.


> 2) Be sure lighttpd is able to access your home dir. You can "su -" with 
> the lighttpd user to check this:
> 
> su - %lighttpd_user_name%
> ls -la /home/charles/www
> 
> please replace %lighttpd_user_name% with real username which lighttpd 
> works from.

I tried it and got an error message:

[root@centos ~]# ps aux | grep lighttpd
lighttpd  4038  0.0  0.4 16128 4316 ?        Ss   15:58   0:00 
/usr/bin/php-cgi
lighttpd  4041  0.0  0.4 17452 4316 ?        Ss   15:58   0:00 
/usr/bin/php-cgi
lighttpd  4042  0.0  0.4 16176 4320 ?        Ss   15:58   0:00 
/usr/bin/php-cgi
lighttpd  4043  0.0  0.4 16280 4320 ?        Ss   15:58   0:00 
/usr/bin/php-cgi
lighttpd  4044  0.0  0.4 17452 4332 ?        S    15:58   0:00 
/usr/bin/php-cgi
lighttpd  4045  0.0  0.4 16128 4332 ?        S    15:58   0:00 
/usr/bin/php-cgi
lighttpd  4046  0.0  0.4 16176 4336 ?        S    15:58   0:00 
/usr/bin/php-cgi
lighttpd  4047  0.0  0.4 16280 4336 ?        S    15:58   0:00 
/usr/bin/php-cgi
root      4399  0.0  0.0  4920  648 pts/1    R+   16:49   0:00 grep 
lighttpd
[root@centos ~]# su - lighttpd
This account is currently not available.
[root@centos ~]#


> 3) It is possible that you have no index file in this directory. Check
> your server.indexfiles in lighttpd config and be sure you have any of
> those files existing in that directory.
> 
> 4) Good luck ;)

Yes, actually I have an index file there:

[root@centos ~]# ls ~charles/www
index.html
[root@centos ~]#

What else could cause this error?
Thanks,
Posted by Don Pedro
on 12.09.2006 19:56
> What else could cause this error?

please modify your lighttpd config file:

debug.log-request-header   = "enable"
debug.log-response-header  = "enable"
debug.log-request-handling = "enable"
debug.log-file-not-found   = "enable"

server.errorlog = "/var/log/lighttpd/error_log"

restart lighttpd, and do:

tail -f /var/log/lighttpd/error_log

next, try to access http://localhost/ and see the logs. May be you'll 
see the problem there. If not, copy-paste logs here please.
Posted by Charles (Guest)
on 13.09.2006 00:50
Vyacheslav Chernousov wrote:

> next, try to access http://localhost/ and see the logs. May be you'll 
> see the problem there. If not, copy-paste logs here please.

Thank you, here it is:

[root@centos ~]# tail -f /var/log/lighttpd/error_log
2006-09-12 21:47:47: (response.c.1188) Path         : /home/charles/www/
2006-09-12 21:47:47: (response.c.252) Response-Header:
HTTP/1.1 403 Forbidden
Content-Length: 345
Date: Wed, 13 Sep 2006 00:47:47 GMT
Accept-Ranges: bytes
Content-Type: text/html
Server: lighttpd/1.3.16


2006-09-12 21:48:03: (request.c.293) fd: 5 request-len: 446
GET /index.html HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) 
Gecko/20060728 CentOS/1.5.0.5-0.el4.1.centos4 Firefox/1.5.0.5 pango-text
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive


2006-09-12 21:48:03: (response.c.1019) -- splitting Request-URI
2006-09-12 21:48:03: (response.c.1020) Request-URI  :  /index.html
2006-09-12 21:48:03: (response.c.1021) URI-scheme   :  http
2006-09-12 21:48:03: (response.c.1022) URI-authority:  localhost
2006-09-12 21:48:03: (response.c.1023) URI-path     :  /index.html
2006-09-12 21:48:03: (response.c.1024) URI-query    :
2006-09-12 21:48:03: (response.c.1068) -- sanitising URI
2006-09-12 21:48:03: (response.c.1069) URI-path     :  /index.html
2006-09-12 21:48:03: (response.c.1167) -- logical -> physical
2006-09-12 21:48:03: (response.c.1168) Doc-Root     : /home/charles/www/
2006-09-12 21:48:03: (response.c.1169) Rel-Path     : /index.html
2006-09-12 21:48:03: (response.c.1170) Path         : 
/home/charles/www/index.html
2006-09-12 21:48:03: (response.c.1171) Server-Name  : localhost
2006-09-12 21:48:03: (response.c.1187) -- handling physical path
2006-09-12 21:48:03: (response.c.1188) Path         : 
/home/charles/www/index.html
2006-09-12 21:48:03: (response.c.252) Response-Header:
HTTP/1.1 403 Forbidden
Content-Length: 345
Date: Wed, 13 Sep 2006 00:48:03 GMT
Accept-Ranges: bytes
Content-Type: text/html
Server: lighttpd/1.3.16


2006-09-12 21:48:06: (request.c.293) fd: 5 request-len: 472
GET /index.html HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) 
Gecko/20060728 CentOS/1.5.0.5-0.el4.1.centos4 Firefox/1.5.0.5 pango-text
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cache-Control: max-age=0


2006-09-12 21:48:06: (response.c.1019) -- splitting Request-URI
2006-09-12 21:48:06: (response.c.1020) Request-URI  :  /index.html
2006-09-12 21:48:06: (response.c.1021) URI-scheme   :  http
2006-09-12 21:48:06: (response.c.1022) URI-authority:  localhost
2006-09-12 21:48:06: (response.c.1023) URI-path     :  /index.html
2006-09-12 21:48:06: (response.c.1024) URI-query    :
2006-09-12 21:48:06: (response.c.1068) -- sanitising URI
2006-09-12 21:48:06: (response.c.1069) URI-path     :  /index.html
2006-09-12 21:48:06: (response.c.1167) -- logical -> physical
2006-09-12 21:48:06: (response.c.1168) Doc-Root     : /home/charles/www/
2006-09-12 21:48:06: (response.c.1169) Rel-Path     : /index.html
2006-09-12 21:48:06: (response.c.1170) Path         : 
/home/charles/www/index.html
2006-09-12 21:48:06: (response.c.1171) Server-Name  : localhost
2006-09-12 21:48:06: (response.c.1187) -- handling physical path
2006-09-12 21:48:06: (response.c.1188) Path         : 
/home/charles/www/index.html
2006-09-12 21:48:06: (response.c.252) Response-Header:
HTTP/1.1 403 Forbidden
Content-Length: 345
Date: Wed, 13 Sep 2006 00:48:06 GMT
Accept-Ranges: bytes
Content-Type: text/html
Server: lighttpd/1.3.16


2006-09-12 21:48:07: (request.c.293) fd: 5 request-len: 472
GET /index.html HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) 
Gecko/20060728 CentOS/1.5.0.5-0.el4.1.centos4 Firefox/1.5.0.5 pango-text
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cache-Control: max-age=0


2006-09-12 21:48:07: (response.c.1019) -- splitting Request-URI
2006-09-12 21:48:07: (response.c.1020) Request-URI  :  /index.html
2006-09-12 21:48:07: (response.c.1021) URI-scheme   :  http
2006-09-12 21:48:07: (response.c.1022) URI-authority:  localhost
2006-09-12 21:48:07: (response.c.1023) URI-path     :  /index.html
2006-09-12 21:48:07: (response.c.1024) URI-query    :
2006-09-12 21:48:07: (response.c.1068) -- sanitising URI
2006-09-12 21:48:07: (response.c.1069) URI-path     :  /index.html
2006-09-12 21:48:07: (response.c.1167) -- logical -> physical
2006-09-12 21:48:07: (response.c.1168) Doc-Root     : /home/charles/www/
2006-09-12 21:48:07: (response.c.1169) Rel-Path     : /index.html
2006-09-12 21:48:07: (response.c.1170) Path         : 
/home/charles/www/index.html
2006-09-12 21:48:07: (response.c.1171) Server-Name  : localhost
2006-09-12 21:48:07: (response.c.1187) -- handling physical path
2006-09-12 21:48:07: (response.c.1188) Path         : 
/home/charles/www/index.html
2006-09-12 21:48:07: (response.c.252) Response-Header:
HTTP/1.1 403 Forbidden
Content-Length: 345
Date: Wed, 13 Sep 2006 00:48:07 GMT
Accept-Ranges: bytes
Content-Type: text/html
Server: lighttpd/1.3.16


2006-09-12 21:48:10: (request.c.293) fd: 5 request-len: 462
GET / HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) 
Gecko/20060728 CentOS/1.5.0.5-0.el4.1.centos4 Firefox/1.5.0.5 pango-text
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cache-Control: max-age=0


2006-09-12 21:48:10: (response.c.1019) -- splitting Request-URI
2006-09-12 21:48:10: (response.c.1020) Request-URI  :  /
2006-09-12 21:48:10: (response.c.1021) URI-scheme   :  http
2006-09-12 21:48:10: (response.c.1022) URI-authority:  localhost
2006-09-12 21:48:10: (response.c.1023) URI-path     :  /
2006-09-12 21:48:10: (response.c.1024) URI-query    :
2006-09-12 21:48:10: (response.c.1068) -- sanitising URI
2006-09-12 21:48:10: (response.c.1069) URI-path     :  /
2006-09-12 21:48:10: (response.c.1167) -- logical -> physical
2006-09-12 21:48:10: (response.c.1168) Doc-Root     : /home/charles/www/
2006-09-12 21:48:10: (response.c.1169) Rel-Path     : /
2006-09-12 21:48:10: (response.c.1170) Path         : /home/charles/www/
2006-09-12 21:48:10: (response.c.1171) Server-Name  : localhost
2006-09-12 21:48:10: (response.c.1187) -- handling physical path
2006-09-12 21:48:10: (response.c.1188) Path         : /home/charles/www/
2006-09-12 21:48:10: (response.c.252) Response-Header:
HTTP/1.1 403 Forbidden
Content-Length: 345
Date: Wed, 13 Sep 2006 00:48:10 GMT
Accept-Ranges: bytes
Content-Type: text/html
Server: lighttpd/1.3.16


2006-09-12 21:48:18: (request.c.293) fd: 6 request-len: 436
GET / HTTP/1.1
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) 
Gecko/20060728 CentOS/1.5.0.5-0.el4.1.centos4 Firefox/1.5.0.5 pango-text
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive


2006-09-12 21:48:18: (response.c.1019) -- splitting Request-URI
2006-09-12 21:48:18: (response.c.1020) Request-URI  :  /
2006-09-12 21:48:18: (response.c.1021) URI-scheme   :  http
2006-09-12 21:48:18: (response.c.1022) URI-authority:  127.0.0.1
2006-09-12 21:48:18: (response.c.1023) URI-path     :  /
2006-09-12 21:48:18: (response.c.1024) URI-query    :
2006-09-12 21:48:18: (response.c.1068) -- sanitising URI
2006-09-12 21:48:18: (response.c.1069) URI-path     :  /
2006-09-12 21:48:18: (response.c.1167) -- logical -> physical
2006-09-12 21:48:18: (response.c.1168) Doc-Root     : /home/charles/www/
2006-09-12 21:48:18: (response.c.1169) Rel-Path     : /
2006-09-12 21:48:18: (response.c.1170) Path         : /home/charles/www/
2006-09-12 21:48:18: (response.c.1171) Server-Name  : 127.0.0.1
2006-09-12 21:48:18: (response.c.1187) -- handling physical path
2006-09-12 21:48:18: (response.c.1188) Path         : /home/charles/www/
2006-09-12 21:48:18: (response.c.252) Response-Header:
HTTP/1.1 403 Forbidden
Content-Length: 345
Date: Wed, 13 Sep 2006 00:48:18 GMT
Accept-Ranges: bytes
Content-Type: text/html
Server: lighttpd/1.3.16


2006-09-12 21:48:19: (request.c.293) fd: 6 request-len: 462
GET / HTTP/1.1
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) 
Gecko/20060728 CentOS/1.5.0.5-0.el4.1.centos4 Firefox/1.5.0.5 pango-text
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cache-Control: max-age=0


2006-09-12 21:48:19: (response.c.1019) -- splitting Request-URI
2006-09-12 21:48:19: (response.c.1020) Request-URI  :  /
2006-09-12 21:48:19: (response.c.1021) URI-scheme   :  http
2006-09-12 21:48:19: (response.c.1022) URI-authority:  127.0.0.1
2006-09-12 21:48:19: (response.c.1023) URI-path     :  /
2006-09-12 21:48:19: (response.c.1024) URI-query    :
2006-09-12 21:48:19: (response.c.1068) -- sanitising URI
2006-09-12 21:48:19: (response.c.1069) URI-path     :  /
2006-09-12 21:48:19: (response.c.1167) -- logical -> physical
2006-09-12 21:48:19: (response.c.1168) Doc-Root     : /home/charles/www/
2006-09-12 21:48:19: (response.c.1169) Rel-Path     : /
2006-09-12 21:48:19: (response.c.1170) Path         : /home/charles/www/
2006-09-12 21:48:19: (response.c.1171) Server-Name  : 127.0.0.1
2006-09-12 21:48:19: (response.c.1187) -- handling physical path
2006-09-12 21:48:19: (response.c.1188) Path         : /home/charles/www/
2006-09-12 21:48:19: (response.c.252) Response-Header:
HTTP/1.1 403 Forbidden
Content-Length: 345
Date: Wed, 13 Sep 2006 00:48:19 GMT
Accept-Ranges: bytes
Content-Type: text/html
Server: lighttpd/1.3.16



[root@centos ~]# tail -f /var/log/lighttpd/error_log
2006-09-12 21:48:19: (response.c.1188) Path         : /home/charles/www/
2006-09-12 21:48:19: (response.c.252) Response-Header:
HTTP/1.1 403 Forbidden
Content-Length: 345
Date: Wed, 13 Sep 2006 00:48:19 GMT
Accept-Ranges: bytes
Content-Type: text/html
Server: lighttpd/1.3.16
Posted by Stan Papusa
on 13.09.2006 03:42
Try to change directory owner with lighttpd because your lighttpd run in
chroot  with lighttpd user : chown -R lighttpd.lighttpd 
/home/charles/www
Posted by Charles (Guest)
on 13.09.2006 15:02
Stan Papusa wrote:
> Try to change directory owner with lighttpd because your lighttpd run in
> chroot  with lighttpd user : chown -R lighttpd.lighttpd 
> /home/charles/www

Still same error message :(