On Tue, Sep 7, 2010 at 1:05 PM, Alvaro Lopez Ortega <[email protected]> wrote: > On 07/09/2010, at 21:57, Sam Gandhi wrote: > >> What I wanted to find out is there way to insert header/footer >> contents for every file that is served out by cherokee web server. >> >> I know if I had static HTML files I could use the server-side includes >> and specify things <!--#include virtual="banner.html" --> but is >> there such a thing I can include while browsing the directory >> structure? > > You can write a dirlist theme. Cherokee installs three by default, but you > can create as many as you want. Simply, copy one of the directories with > another name, and customize it to fit your needs. > > The theme directories are located under $prefix/share/cherokee/themes, > usually /usr/share/cherokee/themes. >
What if that file is .png, jpg file do I need to write explicit rules for those files as well? Also what statements out of the config file below actually pick the theme default v/s firefox for example? With these themes installed I can see the default cherokee theme, but now if I wanted to change the scheme to firefox what is the configuration that i need to change? vserver!1!rule!5!encoder!gzip = allow vserver!1!rule!5!handler = server_info vserver!1!rule!5!handler!type = just_about vserver!1!rule!5!match = directory vserver!1!rule!5!match!directory = /about vserver!1!rule!4!document_root = /sandbox/web/lib/cgi-bin vserver!1!rule!4!handler = cgi vserver!1!rule!4!match = directory vserver!1!rule!4!match!directory = /cgi-bin vserver!1!rule!3!document_root = /sandbox/web/share/cherokee/themes vserver!1!rule!3!handler = file vserver!1!rule!3!match = directory vserver!1!rule!3!match!directory = /cherokee_themes vserver!1!rule!2!document_root = /sandbox/web/share/cherokee/icons vserver!1!rule!2!handler = file vserver!1!rule!2!match = directory vserver!1!rule!2!match!directory = /icons vserver!1!rule!1!handler = common vserver!1!rule!1!handler!iocache = 1 vserver!1!rule!1!match = default -Sam > > _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
