Bug #230
closedCache not being created for static content
Description
lighttpd.conf:
server.username = "www" server.groupname = "www" compress.cache-dir = "/var/log/lighttpd/cache" compress.filetype = ("text/css", "text/html", "text/javascript", "text/plain", "text/xml") alias.url = ( "/webalizer/" => "/usr/local/www/webalizer/" )
-
mkdir -p /var/log/lighttpd/cache/
chown -R www:www /var/log/lighttpd
*
http://domain.com/webalizer/
*
(mod_compress.c.400) creating cachefile /var/cache//webalizer/usage_200508.htm-gzip-476821-169605-1124917563 failed No such file or directory
*
also someone setup via mod_userdir gets a simmilar error
2005-08-25 08:59:25: (mod_compress.c.400) creating cachefile /var/log/lighttpd/cache//~username/home.html-gzip-682512-2147-1124474104 failed No such file or directorybr
2005-08-25 08:59:25: (mod_compress.c.400) creating cachefile /var/log/lighttpd/cache//~username/stylesheet.css-gzip-682506-833-1124460891 failed No such file or directory
Doing an mkdir /var/log/lighttpd/cache/\~username and setting proper ownership will allow cached files to be created successfully.
*
weigon says that it has to do w/ mod_alias and mod_userdir
-- Mystique
Files
Updated by Anonymous almost 19 years ago
I also encouter this on FreeBSD 6.0 Release with mod_userdir/alias and static content outside of user's dirs.
-- bwolf
Updated by conny almost 19 years ago
Perhaps weigon should elaborate ;-)
Nevertheless there should be a test.
Updated by Anonymous about 18 years ago
Hi,
I'm getting this too in lighttpd on Ubuntu Edgy (1.4.13~r1370-1ubuntu1).
mod_compress cannot create dir with mod_userdir enabled.
This should be fixed soon.
-- ubuntu
Updated by stbuehler almost 17 years ago
- Status changed from New to Fixed
- Resolution set to duplicate
See #1027 for patch.
Also available in: Atom