edwardando | 3 Apr 2007 18:00

Hello! Some help with caching and max-age

Hi All,
I am using cherokee, and I am very impressed of the ease of configuration
and lack of dependencies!

I am using CGI-Bin to create an image that I am using in the same page. The image is not being reloaded at every demand, which is what I'd like...

I've set /etc/cherokee/mime.conf to say:

Quote:

image/jpeg jpeg jpg jpe


MimeType {
max-age 1
}


Thanks for any help!

Edward




-------

Read this topic online here:
http://www.cherokee-project.com/forum/viewtopic.php?p=257#257

-------
_______________________________________________
Cherokee mailing list
Cherokee <at> cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee
Alvaro Lopez Ortega | 3 Apr 2007 19:00
Picon

Re: Hello! Some help with caching and max-age

edwardando wrote, On 03/04/07 18:00:

 > I am using CGI-Bin to create an image that I am using in the same
 > page.  The image is not being reloaded at every demand, which is
 > what I'd like...

   I'm not completely sure about what your problem is. I suppose the
   image is being cached by the internal file cache and therefore is
   not refreshed as you would expect.

   The solution to that problem is to add "IOCache off" to the
   directory configuration in which the image is placed. For example,
   let's suppose you image is generated under the /tmpimg/ directory:

   Directory /tmpimg {
      Handler file {
	   IOcache off
      }
   }

   .. I hope that was actually the problem. Good luck!

--

-- 
Greetings, alo.
xlynx | 7 Apr 2007 09:31

Re: cherokee, windows, locking files

Sorry I don't have a solution, but I am experiencing this behaviour too.




-------

Read this topic online here:
http://www.cherokee-project.com/forum/viewtopic.php?p=258#258

-------
_______________________________________________
Cherokee mailing list
Cherokee <at> cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee
xlynx | 7 Apr 2007 09:32

Re: starting Cherokee on window

Yeah, more importantly than having a window open, it would ideally start when the computer boots, not when a user logs in.




-------

Read this topic online here:
http://www.cherokee-project.com/forum/viewtopic.php?p=259#259

-------
_______________________________________________
Cherokee mailing list
Cherokee <at> cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee
xlynx | 7 Apr 2007 09:44

content-type incorrect in Win32 build?

Hi, I installed Cherokee-setup-0.5.4.exe on the latest XP, but some clients are having trouble accessing it. eg. the w3 validator gives the following error:

Code:
Sorry, I am unable to validate this document because its content type is [removed], which is not currently supported by this service.


I tried setting the MIME types as in the documentation, but no such luck. The documentation mentions the mime.conf location can vary with your build so I tried putting it in a few locations:

Code:
c:\etc\cherokee\mime.conf
c:\documents and settings\user\application data\cherokee\mime.conf
c:\program files\cherokee\mime.conf (same place as cherokee.conf)


And restarting Cherokee each time but it still seems to be delivering the wrong content type headers. Any ideas?




-------

Read this topic online here:
http://www.cherokee-project.com/forum/viewtopic.php?p=260#260

-------
_______________________________________________
Cherokee mailing list
Cherokee <at> cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee
Alvaro Lopez Ortega | 7 Apr 2007 10:14
Picon

Re: content-type incorrect in Win32 build?

xlynx wrote, On 07/04/07 09:44:

 > I tried setting the MIME types as in the documentation, but no such
 > luck. The documentation mentions the mime.conf location can vary
 > with your build so I tried putting it in a few locations:
 >
 > *Code:*
 > c:\etc\cherokee\mime.conf
 > c:\documents and settings\user\application data\cherokee\mime.conf
 > c:\program files\cherokee\mime.conf (same place as cherokee.conf)
 >
 > And restarting Cherokee each time but it still seems to be delivering
 > the wrong content type headers. Any ideas?

   Looks like a bug. Could you please log a new bug for this issue?  I
   will try to take care of this before the 0.6.0 release.

--

-- 
Greetings, alo.
Alvaro Lopez Ortega | 7 Apr 2007 10:17
Picon

Re: starting Cherokee on window

xlynx wrote, On 07/04/07 09:32:

 > Yeah, more importantly than having a window open, it would ideally start
 > when the computer boots, not when a user logs in.

   +1

   We should convert the Cherokee win32/app into a Windows service.

   Does some fancy the task? Paths are more than welcome.. :-)

--

-- 
Greetings, alo.
Alvaro Lopez Ortega | 7 Apr 2007 11:21
Picon

Cherokee 0.6.0 beta1 released!

Hi guys,

   I'm glad to announce that the Cherokee 0.6.0-beta1 is now available
   for beta-testing!!

   - Cherokee 0.6.0-beta1:
     http://www.cherokee-project.com/download/0.6/0.6.0/cherokee-0.6.0b700.tar.gz

   As you know, there have been loads of changes and improvements since
   we created the new branch based on the current 0.5 version: better
   performance, new handlers, a brand new configuration system, etc.

   Even if this is the first beta version of a branch in which we have
   done many changes, it's quite stable. I have been running it in a
   couple of servers for a few weeks now and everything has been
   working as expected. However, remember that this is still a beta
   release, it's not meant to be deployed in production environments.

   Another important point here is that this beta does not include the
   administration interface. You will have to either deal with the new
   configuration format by hand, or use the previous 0.5 format and the
   converter (05to06.py) shipped in the tarball. The plan is to finish
   the administration interface for 0.6.0 and ship them together.

   As usual, if you find something that doesn't work properly, please
   log a bug and we will try to get it fixed as soon as possible,
   hopefuly before the final 0.6.0 release.

   Happy testing! :-)

--

-- 
Greetings, alo.
Picon
Gravatar

Re: Cherokee 0.6.0 beta1 released!

That's so great !

Congratulations for the beta release.

2007/4/7, Alvaro Lopez Ortega <alvaro <at> sun.com>:
Hi guys,

   I'm glad to announce that the Cherokee 0.6.0-beta1 is now available
   for beta-testing!!

   - Cherokee 0.6.0-beta1:
     http://www.cherokee-project.com/download/0.6/0.6.0/cherokee-0.6.0b700.tar.gz


   As you know, there have been loads of changes and improvements since
   we created the new branch based on the current 0.5 version: better
   performance, new handlers, a brand new configuration system, etc.

   Even if this is the first beta version of a branch in which we have
   done many changes, it's quite stable. I have been running it in a
   couple of servers for a few weeks now and everything has been
   working as expected. However, remember that this is still a beta
   release, it's not meant to be deployed in production environments.

   Another important point here is that this beta does not include the
   administration interface. You will have to either deal with the new
   configuration format by hand, or use the previous 0.5 format and the
   converter (05to06.py) shipped in the tarball. The plan is to finish
   the administration interface for 0.6.0 and ship them together.

   As usual, if you find something that doesn't work properly, please
   log a bug and we will try to get it fixed as soon as possible,
   hopefuly before the final 0.6.0 release.

   Happy testing! :-)

--
Greetings, alo.
_______________________________________________
Cherokee mailing list
Cherokee <at> cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee



--
Mario César Señoranis Ayala.
http://creat1va.com
_______________________________________________
Cherokee mailing list
Cherokee <at> cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee
Manuel Arostegui Ramirez | 7 Apr 2007 15:51
Favicon

Re: Cherokee 0.6.0 beta1 released!


2007/4/7, Alvaro Lopez Ortega <alvaro <at> sun.com>:
Hi guys,

   I'm glad to announce that the Cherokee 0.6.0-beta1 is now available
   for beta-testing!!

   - Cherokee 0.6.0-beta1:
     http://www.cherokee-project.com/download/0.6/0.6.0/cherokee-0.6.0b700.tar.gz


   As you know, there have been loads of changes and improvements since
   we created the new branch based on the current 0.5 version: better
   performance, new handlers, a brand new configuration system, etc.

   Even if this is the first beta version of a branch in which we have
   done many changes, it's quite stable. I have been running it in a
   couple of servers for a few weeks now and everything has been
   working as expected. However, remember that this is still a beta
   release, it's not meant to be deployed in production environments.

   Another important point here is that this beta does not include the
   administration interface. You will have to either deal with the new
   configuration format by hand, or use the previous 0.5 format and the
   converter (05to06.py) shipped in the tarball. The plan is to finish
   the administration interface for 0.6.0 and ship them together.

   As usual, if you find something that doesn't work properly, please
   log a bug and we will try to get it fixed as soon as possible,
   hopefuly before the final 0.6.0 release.

   Happy testing! :-)


Hi Cherokees :-)
Taking advantage of that tarball with the new beta, I´ve built the RPM packages of this new version (still beta, as alo said), those packages are, as usual, in my personal opensuse developer´s repository http://software.opensuse.org/download/home:/marostegui/

I´ve already built packages for: Fedora Core 4,5 and 6. SLEs 9, SLE 10, Suse 10.0, Suse 10.1, Suse 9,3, OpenSuse 10.2, and Suse Factory,

As you guys know, I´m not using the SPEC file which is shipped into the tar.gz, I´m using more speficic and customized spec file for cherokee (I attach it below)






I encourage you guys to test those RPMs in order to know how them work and improve them, if necesary, to be ready for the 0.6 official release :-)

All the best.

Manuel.

---
Cherokee Spec File:
# norootforbuild
# redefine makeinstall to get a sane version.
%define        makeinstall make install DESTDIR="%{buildroot}"
%define        home /var/lib/%{name}
#
Name:          cherokee
Version:       0.6.0b700
Release:       1
Vendor:        Alvaro Lopez Ortega <alvaro <at> sun.com>
Packager:      Manuel Arostegui Ramirez <manuel <at> todo-linux.com>
#
Group:         Productivity/Networking/Web/Servers
License:       GPL
#
BuildRoot:     %{_tmppath}/%{name}-%{version}-build
BuildRequires: openssl-devel pam-devel pcre-devel
PreReq:        /usr/sbin/groupadd /usr/sbin/useradd
#
URL:           http://www.cherokee-project.com/
Source:        http://www.cherokee-project.com/download/0.6/0.6.0/cherokee-0.6.0b700.tar.gz
Source1:        http://www.cherokee-project.com/download/0.5/%{version}/%{name}-%{version}.tar.gz
Source2:       cherokee.init
#
Summary:       Flexible and Fast Webserver
%description
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL
encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Apache compatible log files, and much more.

This package contains the server and essential handlers.

Authors:
--------
    Alvaro Lopez Ortega <alvaro <at> alobbs.com>


%package     -n libcherokee-base
Group:         Productivity/Networking/Web/Servers
#
Summary:       Base library of cherokee
%description -n libcherokee-base
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL
encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Apache compatible log files, and much more.

This package holds the runtime library for libcherokee-base.


Authors:
--------
    Alvaro Lopez Ortega <alvaro <at> alobbs.com>


%package     -n libcherokee-client
Group:         Productivity/Networking/Web/Servers
#
Summary:       client library of cherokee
%description -n libcherokee-client
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL
encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Apache compatible log files, and much more.

This package holds the runtime library for libcherokee-client.


Authors:
--------
    Alvaro Lopez Ortega <alvaro <at> alobbs.com >


%package     -n libcherokee-config
Group:         Productivity/Networking/Web/Servers
#
Summary:       Config library of cherokee
%description -n libcherokee-config
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL
encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Apache compatible log files, and much more.

This package holds the runtime library for libcherokee-config.


Authors:
--------
    Alvaro Lopez Ortega <alvaro <at> alobbs.com>


%package     -n libcherokee-server
Group:         Productivity/Networking/Web/Servers
#
Summary:       Server library of cherokee
%description -n libcherokee-server
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL
encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Apache compatible log files, and much more.

This package holds the runtime library for libcherokee-server.


Authors:
--------
    Alvaro Lopez Ortega <alvaro <at> alobbs.com>


%package devel
Requires:      %{name} = %{version}
Requires:      libcherokee-base = %{version}
Requires:      libcherokee-client = %{version}
Requires:      libcherokee-config = %{version}
Requires:      libcherokee-server = %{version}
Group:         Productivity/Networking/Web/Servers
Summary:       Development files of cherokee
%description devel
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL
encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Apache compatible log files, and much more.

This package holds the development files for cherokee.


Authors:
--------
    Alvaro Lopez Ortega <alvaro <at> alobbs.com >

%package cget
Group:         Productivity/Networking/Web/Servers
#
Summary:       Simple download utility based on the cherokee client library.
%description cget
CGet is a simple download utility based on the cherokee client library.


Authors:
--------
    Alvaro Lopez Ortega <alvaro <at> alobbs.com>


%package example-pages
Requires:      %{name} = %{version}
Group:         Productivity/Networking/Web/Servers
Summary:       Example pages for cherokee
%description example-pages
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL
encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Apache compatible log files, and much more.

Example pages for cherokee


Authors:
--------
    Alvaro Lopez Ortega < alvaro <at> alobbs.com>


%debug_package
%prep
%setup
#%patch

%build
%if 0%{?suse_version} > 1000
export CFLAGS="%{optflags} -fstack-protector"
%endif
%if 0%{?fedora_version} > 4
export CFLAGS="%{optflags} -fstack-protector"
%endif
%if 0%{?mandriva_version} > 2006
export CFLAGS="%{optflags} -fstack-protector"
%endif
%configure \
    --with-wwwroot=/srv/www/htdocs/ \
    --enable-tls=openssl --enable-pthreads --enable-trace --disable-static \
    --enable-os-string="openSUSE Build Service"
%{__make}

%install
%makeinstall
%{__install} -D -m 0644 pam.d_cherokee %{buildroot}%{_sysconfdir}/pam.d/%{name}
%{__install} -D -m 0755 %{S:1}   %{buildroot}/etc/init.d/%{name}
%{__ln_s} -f /etc/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name}
%{__install} -d %{buildroot}/var/{log,lib}/%{name}/

%clean
%{__rm} -rf %{buildroot}

%pre
/usr/sbin/groupadd -r %{name} &>/dev/null ||:
/usr/sbin/useradd  -g %{name} -s /bin/false -r -c "%{name} web server" -d %{home} %{name} &>/dev/null ||:

%post   -n libcherokee-base   -p /sbin/ldconfig
%postun -n libcherokee-base   -p /sbin/ldconfig

%post   -n libcherokee-client -p /sbin/ldconfig
%postun -n libcherokee-client -p /sbin/ldconfig

%post   -n libcherokee-config -p /sbin/ldconfig
%postun -n libcherokee-config -p /sbin/ldconfig

%post   -n libcherokee-server -p /sbin/ldconfig
%postun -n libcherokee-server -p /sbin/ldconfig

%files
   /etc/cherokee/cherokee.conf.perf_sample
   /etc/cherokee/mods-available/icons
   /etc/cherokee/mods-enabled/icons
   /srv/www/htdocs/images/cherokee-logo.png
   /srv/www/htdocs/images/default-bg.png
   /srv/www/htdocs/images/powered_by_cherokee.png
   /srv/www/htdocs/index.html
   /usr/bin/cget
   /usr/bin/cherokee-config
   /usr/include/cherokee/admin_client.h
   /usr/include/cherokee/buffer.h
   /usr/include/cherokee/cherokee-config.h
   /usr/include/cherokee/cherokee.h
   /usr/include/cherokee/common.h
   /usr/include/cherokee/connection.h
   /usr/include/cherokee/connection_info.h
   /usr/include/cherokee/downloader.h
   /usr/include/cherokee/encoder.h
   /usr/include/cherokee/fdpoll.h
   /usr/include/cherokee/handler.h
   /usr/include/cherokee/header.h
   /usr/include/cherokee/http.h
   /usr/include/cherokee/list.h
   /usr/include/cherokee/logger.h
   /usr/include/cherokee/macros.h
   /usr/include/cherokee/mime.h
   /usr/include/cherokee/mime_entry.h
   /usr/include/cherokee/module.h
   /usr/include/cherokee/nonce.h
   /usr/include/cherokee/plugin.h
   /usr/include/cherokee/plugin_loader.h
   /usr/include/cherokee/resolv_cache.h
   /usr/include/cherokee/server.h
   /usr/include/cherokee/table.h
   /usr/include/cherokee/url.h
   /usr/include/cherokee/util.h
   /usr/include/cherokee/version.h
   /usr/lib/libcherokee-base.la
   /usr/lib/libcherokee-base.so
   /usr/lib/libcherokee-base.so.0
   /usr/lib/libcherokee-base.so.0.0.0
   /usr/lib/libcherokee- client.la
   /usr/lib/libcherokee-client.so
   /usr/lib/libcherokee-client.so.0
   /usr/lib/libcherokee-client.so.0.0.0
   /usr/lib/libcherokee-config.la
   /usr/lib/libcherokee- config.so
   /usr/lib/libcherokee-config.so.0
   /usr/lib/libcherokee-config.so.0.0.0
   /usr/lib/libcherokee-server.la
   /usr/lib/libcherokee-server.so
   /usr/lib/libcherokee- server.so.0
   /usr/lib/libcherokee-server.so.0.0.0
   /usr/lib/pkgconfig/cherokee.pc
   /usr/share/aclocal/cherokee.m4
   /usr/share/man/man1/cget.1.gz
   /usr/share/man/man1/cherokee-config.1.gz
%defattr(-,root,root,-)
%config(noreplace) /etc/init.d/%{name}
%{_sbindir}/rc%{name}
%{_bindir}/cherokee-panic
%{_bindir}/cherokee_logrotate
%{_sbindir}/cherokee
%{_sbindir}/cherokee-admin
%{_libdir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/cherokee.1*
%{_mandir}/man1/cherokee_logrotate.1*
%{_sysconfdir}/pam.d/%{name}
%dir %attr(750,root,%{name}) %{_sysconfdir}/%{name}
%dir %attr(750,root,%{name}) %{_sysconfdir}/%{name}/mods-available
%dir %attr(750,root,%{name}) %{_sysconfdir}/%{name}/mods-enabled
%dir %attr(750,root,%{name}) %{_sysconfdir}/%{name}/sites-available
%dir %attr(750,root,%{name}) %{_sysconfdir}/%{name}/sites-enabled
%dir %attr(750,root,%{name}) %{_sysconfdir}/%{name}/ssl
%config(noreplace) %attr(640,root,%{name}) %{_sysconfdir}/%{name}/cherokee.conf
%config(noreplace) %attr(640,root,%{name}) %{_sysconfdir}/%{name}/mime.compression.types
%config(noreplace) %attr(640,root,%{name}) %{_sysconfdir}/%{name}/mime.types
%config(noreplace) %attr(640,root,%{name}) %{_sysconfdir}/%{name}/mods-available/ssl
%config(noreplace) %attr(640,root,%{name)) %{_sysconfdir}/%{name}/cherokee.conf.perf_sample
%config(noreplace) %attr(640,root,%{name)) %{_sysconfdir}/%{name}/mods-available/icons
%config(noreplace) %attr(640,root,%{name)) %{_sysconfdir}/%{name}/mods-enabled/icons
# logs are written as root. no need to give perms to the cherokee user.
%dir /var/log/%{name}/
%dir %attr(-,%{name},%{name}) /var/lib/%{name}/

%files cget
%defattr(-,root,root,-)
%{_bindir}/cget
%{_mandir}/man1/cget.1*

%files -n libcherokee-base
%defattr(-,root,root,-)
%{_libdir}/lib%{name}-base.so.*

%files -n libcherokee-client
%defattr(-,root,root,-)
%{_libdir}/lib%{name}-client.so.*

%files -n libcherokee-server
%defattr(-,root,root,-)
%{_libdir}/lib%{name}-server.so.*

%files -n libcherokee-config
%defattr(-,root,root,-)
%{_libdir}/libcherokee-config.so.0
%{_libdir}/libcherokee-config.so.0.0.0

%files example-pages
%defattr(-,root,root,-)
%dir /srv/www/htdocs/
%dir /srv/www/htdocs/images/
%config(noreplace) /srv/www/htdocs/images/cherokee- logo.png
%config(noreplace) /srv/www/htdocs/images/default-bg.png
%config(noreplace) /srv/www/htdocs/images/powered_by_cherokee.png
%config(noreplace) /srv/www/htdocs/index.html

%files devel
%defattr(-,root,root,-)
%{_mandir}/man1/cherokee-config.1*
%{_bindir}/cherokee-config
%{_includedir}/%{name}
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/aclocal/%{name}.m4
%{_libdir}/lib%{name}-*.so
%{_libdir}/lib%{name}-*.la

%changelog





_______________________________________________
Cherokee mailing list
Cherokee <at> cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee

Gmane