Project

General

Profile

Actions

Bug #230

closed

Cache not being created for static content

Added by Anonymous over 18 years ago. Updated about 16 years ago.

Status:
Fixed
Priority:
High
Category:
mod_compress
Target version:
-
ASK QUESTIONS IN Forums:

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

lighttpd-mod-compress-subdir-tests.patch (2.51 KB) lighttpd-mod-compress-subdir-tests.patch Test requests for subdirectories as well as aliased URLs conny, 2006-02-10 19:03
Actions #1

Updated by Anonymous over 18 years ago

I also encouter this on FreeBSD 6.0 Release with mod_userdir/alias and static content outside of user's dirs.

-- bwolf

Actions #2

Updated by conny about 18 years ago

Perhaps weigon should elaborate ;-)

Nevertheless there should be a test.

Actions #3

Updated by Anonymous over 17 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

Actions #4

Updated by stbuehler about 16 years ago

  • Status changed from New to Fixed
  • Resolution set to duplicate

See #1027 for patch.

Actions

Also available in: Atom