Ticket #230 (closed defect: duplicate)

Opened 3 years ago

Last modified 6 months ago

Cache not being created for static content

Reported by: Mystique Owned by: jan
Priority: high Milestone:
Component: mod_compress Version: 1.4.
Severity: major Keywords: mod_alias mod_userdir mod_compress cleanup test
Cc: Blocked By:
Need User Feedback: no Blocking:

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 directory
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

Attachments

lighttpd-mod-compress-subdir-tests.patch (2.5 kB) - added by conny 3 years ago.
Test requests for subdirectories as well as aliased URLs

Change History

Changed 3 years ago by bwolf@…

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

Changed 3 years ago by conny

  • keywords cleanup added

Perhaps weigon should elaborate ;-)

Nevertheless there should be a test.

Changed 3 years ago by conny

Test requests for subdirectories as well as aliased URLs

Changed 3 years ago by conny

  • keywords test added

Changed 23 months ago by ubuntu@…

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.

Changed 6 months ago by stbuehler

  • status changed from new to closed
  • resolution set to duplicate
  • pending unset

See #1027 for patch.

Add/Change #230 (Cache not being created for static content)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.