Changeset 340

Show
Ignore:
Timestamp:
08/19/06 15:40:47 (2 years ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/Makefile.am

    r282 r340  
    3030        $(top_builddir)/cherokee_replace $< $@ "%sysconfdir%" "${sysconfdir}" "%datadir%" "${datadir}" "%prefix%" "${prefix}" "%wwwroot%" "${WWW_ROOT}" 
    3131 
    32 CONFS_PRE =              \ 
    33 mods-ssl.sample.pre      \ 
    34 cherokee.conf.sample.pre \ 
    35 advanced.conf.sample.pre \ 
    36 sites-default.sample.pre \ 
    37 sites-example.sample.pre 
     32CONFS_PRE = \ 
     33cherokee.conf.sample.pre 
    3834 
    3935CONFS_DONE =      \ 
    4036mime.types.sample \ 
    41 mime.compression.types.sample \ 
    42 icons.conf.sample \ 
    43 mods-admin.sample 
     37mime.compression.types.sample 
    4438 
    4539CONFS = \ 
     
    8882        @$(mkinstalldirs) $(DESTDIR)$(cherokeeconfdir) 
    8983        @$(mkinstalldirs) $(DESTDIR)$(cherokeeconfdir)/ssl 
    90         @$(mkinstalldirs) $(DESTDIR)$(cherokeeconfdir)/mods-enabled 
    91         @$(mkinstalldirs) $(DESTDIR)$(cherokeeconfdir)/mods-available 
    92         @$(mkinstalldirs) $(DESTDIR)$(cherokeeconfdir)/sites-enabled 
    93         @$(mkinstalldirs) $(DESTDIR)$(cherokeeconfdir)/sites-available 
    9484        @if test -f $(DESTDIR)$(cherokeeconfdir)/cherokee.conf ; then \ 
    9585                echo "$@ will not overwrite existing $(DESTDIR)$(cherokeeconfdir)/cherokee.conf"; \ 
    9686        else \ 
    9787                $(INSTALL_DATA) $(top_builddir)/cherokee.conf.sample $(DESTDIR)$(cherokeeconfdir)/cherokee.conf; \ 
    98         fi 
    99         @if test -f $(DESTDIR)$(cherokeeconfdir)/advanced.conf ; then \ 
    100                 echo "$@ will not overwrite existing $(DESTDIR)$(cherokeeconfdir)/advanced.conf"; \ 
    101         else \ 
    102                 $(INSTALL_DATA) $(top_builddir)/advanced.conf.sample $(DESTDIR)$(cherokeeconfdir)/advanced.conf; \ 
    103         fi 
    104         @if test -f $(DESTDIR)$(cherokeeconfdir)/icons.conf ; then \ 
    105                 echo "$@ will not overwrite existing $(DESTDIR)$(cherokeeconfdir)/icons.conf"; \ 
    106         else \ 
    107                 $(INSTALL_DATA) $(top_srcdir)/icons.conf.sample $(DESTDIR)$(cherokeeconfdir)/icons.conf; \ 
    10888        fi 
    10989        @if test -f $(DESTDIR)$(cherokeeconfdir)/mime.types ; then \ 
     
    120100                $(INSTALL_DATA) $(top_srcdir)/pam.d_cherokee $(DESTDIR)$(sysconfdir)/pam.d/cherokee; \ 
    121101        fi 
    122         @if test -f $(DESTDIR)$(cherokeeconfdir)/sites-available/default ; then \ 
    123                 echo "$@ will not overwrite existing $(DESTDIR)$(cherokeeconfdir)/sites-available/default"; \ 
    124         else \ 
    125                 $(INSTALL_DATA) $(top_builddir)/sites-default.sample $(DESTDIR)$(cherokeeconfdir)/sites-available/default; \ 
    126                 $(SHELL) -c "cd $(DESTDIR)$(cherokeeconfdir)/sites-enabled/ && $(LN_S) ../sites-available/default ."; \ 
    127         fi 
    128         @if test -f $(DESTDIR)$(cherokeeconfdir)/sites-available/example.com ; then \ 
    129                 echo "$@ will not overwrite existing $(DESTDIR)$(cherokeeconfdir)/sites-available/example.com"; \ 
    130         else \ 
    131                 $(INSTALL_DATA) $(top_builddir)/sites-example.sample $(DESTDIR)$(cherokeeconfdir)/sites-available/example.com; \ 
    132         fi 
    133102        @if test -f $(DESTDIR)$(cherokeeconfdir)/mods-available/ssl ; then \ 
    134103                echo "$@ will not overwrite existing $(DESTDIR)$(cherokeeconfdir)/mods-available/ssl"; \ 
    135104        else \ 
    136105                $(INSTALL_DATA) $(top_builddir)/mods-ssl.sample $(DESTDIR)$(cherokeeconfdir)/mods-available/ssl; \ 
    137         fi 
    138         @if test -f $(DESTDIR)$(cherokeeconfdir)/mods-available/admin ; then \ 
    139                 echo "$@ will not overwrite existing $(DESTDIR)$(cherokeeconfdir)/mods-available/admin"; \ 
    140         else \ 
    141                 $(INSTALL_DATA) $(top_srcdir)/mods-admin.sample $(DESTDIR)$(cherokeeconfdir)/mods-available/admin; \ 
    142106        fi 
    143107        $(mkinstalldirs) $(DESTDIR)$(localstatedir) 
     
    147111                echo "rm -f $(DESTDIR)$(cherokeeconfdir)/cherokee.conf"; \ 
    148112                $(RM) -f $(DESTDIR)$(cherokeeconfdir)/cherokee.conf; \ 
    149         fi 
    150         @if test -f $(DESTDIR)$(cherokeeconfdir)/advanced.conf ; then \ 
    151                 echo "rm -f $(DESTDIR)$(cherokeeconfdir)/advanced.conf"; \ 
    152                 $(RM) -f $(DESTDIR)$(cherokeeconfdir)/advanced.conf; \ 
    153         fi 
    154         @if test -f $(DESTDIR)$(cherokeeconfdir)/icons.conf ; then \ 
    155                 echo "rm -f $(DESTDIR)$(cherokeeconfdir)/icons.conf"; \ 
    156                 $(RM) -f $(DESTDIR)$(cherokeeconfdir)/icons.conf; \ 
    157113        fi 
    158114        @if test -f $(DESTDIR)$(cherokeeconfdir)/mime.types ; then \ 
     
    167123                $(RM) -f $(DESTDIR)$(cherokeeconfdir)/mods-available/ssl; \ 
    168124        fi 
    169         @if test -f $(DESTDIR)$(cherokeeconfdir)/mods-available/admin ; then \ 
    170                 $(RM) -f $(DESTDIR)$(cherokeeconfdir)/mods-available/admin; \ 
    171         fi 
    172         @if test -f $(DESTDIR)$(cherokeeconfdir)/sites-available/default ; then \ 
    173                 $(RM) -f $(DESTDIR)$(cherokeeconfdir)/sites-available/default; \ 
    174         fi 
    175         @if test -f $(DESTDIR)$(cherokeeconfdir)/sites-available/example.com ; then \ 
    176                 $(RM) -f $(DESTDIR)$(cherokeeconfdir)/sites-available/example.com; \ 
    177         fi 
    178125 
    179126test: 
  • cherokee/trunk/cherokee.conf.sample.pre

    r339 r340  
    88# 
    99server!port = 80 
    10 server!tls_port = 443 
     10server!port_tls = 443 
    1111server!timeout = 60 
    12 server!keepalive= 1 
     12server!keepalive = 1 
    1313server!keepalive_max_requests = 500 
    1414server!pid_file = /var/run/cherokee.pid 
    1515server!server_tokens = full 
    1616server!encoder!gzip!allow = html,html,txt 
    17 server!panic_action= %prefix%/bin/cherokee-panic 
     17server!panic_action = %prefix%/bin/cherokee-panic 
     18server!mime_file = %sysconfdir%/cherokee/mime.types 
     19server!mime_file = %sysconfdir%/cherokee/mime.compression.types 
    1820 
    1921# Default virtual server 
    2022# 
    2123vserver!default!document_root = %wwwroot% 
    22 vserber!default!directory_index = index.php,index.html 
     24vserver!default!directory_index = index.php,index.html 
    2325 
    2426vserver!default!directory!/!handler = common 
     
    4547# Icons 
    4648# 
     49icons!default = unknown.png 
    4750icons!directory = folder.png 
    4851icons!parent_directory = back.png 
    49 icons!default = unknown.png 
    5052 
    5153icons!file!core = core 
  • cherokee/trunk/cherokee/virtual_server.c

    r283 r340  
    347347 
    348348static ret_t  
    349 add_directory_index (char *alias, void *data) 
     349add_directory_index (char *index, void *data) 
    350350{ 
    351351        cherokee_virtual_server_t *vserver = VSERVER(data); 
    352352 
    353         cherokee_list_add_tail (&vserver->index_list, strdup(alias)); 
     353        TRACE(ENTRIES, "Adding directory index '%s'\n", index); 
     354 
     355        cherokee_list_add_tail (&vserver->index_list, strdup(index)); 
    354356        return ret_ok; 
    355357}