Changeset 340
- Timestamp:
- 08/19/06 15:40:47 (2 years ago)
- Files:
-
- cherokee/trunk/Makefile.am (modified) (5 diffs)
- cherokee/trunk/cherokee.conf.sample.pre (modified) (2 diffs)
- cherokee/trunk/cherokee/virtual_server.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/Makefile.am
r282 r340 30 30 $(top_builddir)/cherokee_replace $< $@ "%sysconfdir%" "${sysconfdir}" "%datadir%" "${datadir}" "%prefix%" "${prefix}" "%wwwroot%" "${WWW_ROOT}" 31 31 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 32 CONFS_PRE = \ 33 cherokee.conf.sample.pre 38 34 39 35 CONFS_DONE = \ 40 36 mime.types.sample \ 41 mime.compression.types.sample \ 42 icons.conf.sample \ 43 mods-admin.sample 37 mime.compression.types.sample 44 38 45 39 CONFS = \ … … 88 82 @$(mkinstalldirs) $(DESTDIR)$(cherokeeconfdir) 89 83 @$(mkinstalldirs) $(DESTDIR)$(cherokeeconfdir)/ssl 90 @$(mkinstalldirs) $(DESTDIR)$(cherokeeconfdir)/mods-enabled91 @$(mkinstalldirs) $(DESTDIR)$(cherokeeconfdir)/mods-available92 @$(mkinstalldirs) $(DESTDIR)$(cherokeeconfdir)/sites-enabled93 @$(mkinstalldirs) $(DESTDIR)$(cherokeeconfdir)/sites-available94 84 @if test -f $(DESTDIR)$(cherokeeconfdir)/cherokee.conf ; then \ 95 85 echo "$@ will not overwrite existing $(DESTDIR)$(cherokeeconfdir)/cherokee.conf"; \ 96 86 else \ 97 87 $(INSTALL_DATA) $(top_builddir)/cherokee.conf.sample $(DESTDIR)$(cherokeeconfdir)/cherokee.conf; \ 98 fi99 @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 fi104 @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; \108 88 fi 109 89 @if test -f $(DESTDIR)$(cherokeeconfdir)/mime.types ; then \ … … 120 100 $(INSTALL_DATA) $(top_srcdir)/pam.d_cherokee $(DESTDIR)$(sysconfdir)/pam.d/cherokee; \ 121 101 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 fi128 @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 fi133 102 @if test -f $(DESTDIR)$(cherokeeconfdir)/mods-available/ssl ; then \ 134 103 echo "$@ will not overwrite existing $(DESTDIR)$(cherokeeconfdir)/mods-available/ssl"; \ 135 104 else \ 136 105 $(INSTALL_DATA) $(top_builddir)/mods-ssl.sample $(DESTDIR)$(cherokeeconfdir)/mods-available/ssl; \ 137 fi138 @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; \142 106 fi 143 107 $(mkinstalldirs) $(DESTDIR)$(localstatedir) … … 147 111 echo "rm -f $(DESTDIR)$(cherokeeconfdir)/cherokee.conf"; \ 148 112 $(RM) -f $(DESTDIR)$(cherokeeconfdir)/cherokee.conf; \ 149 fi150 @if test -f $(DESTDIR)$(cherokeeconfdir)/advanced.conf ; then \151 echo "rm -f $(DESTDIR)$(cherokeeconfdir)/advanced.conf"; \152 $(RM) -f $(DESTDIR)$(cherokeeconfdir)/advanced.conf; \153 fi154 @if test -f $(DESTDIR)$(cherokeeconfdir)/icons.conf ; then \155 echo "rm -f $(DESTDIR)$(cherokeeconfdir)/icons.conf"; \156 $(RM) -f $(DESTDIR)$(cherokeeconfdir)/icons.conf; \157 113 fi 158 114 @if test -f $(DESTDIR)$(cherokeeconfdir)/mime.types ; then \ … … 167 123 $(RM) -f $(DESTDIR)$(cherokeeconfdir)/mods-available/ssl; \ 168 124 fi 169 @if test -f $(DESTDIR)$(cherokeeconfdir)/mods-available/admin ; then \170 $(RM) -f $(DESTDIR)$(cherokeeconfdir)/mods-available/admin; \171 fi172 @if test -f $(DESTDIR)$(cherokeeconfdir)/sites-available/default ; then \173 $(RM) -f $(DESTDIR)$(cherokeeconfdir)/sites-available/default; \174 fi175 @if test -f $(DESTDIR)$(cherokeeconfdir)/sites-available/example.com ; then \176 $(RM) -f $(DESTDIR)$(cherokeeconfdir)/sites-available/example.com; \177 fi178 125 179 126 test: cherokee/trunk/cherokee.conf.sample.pre
r339 r340 8 8 # 9 9 server!port = 80 10 server! tls_port= 44310 server!port_tls = 443 11 11 server!timeout = 60 12 server!keepalive = 112 server!keepalive = 1 13 13 server!keepalive_max_requests = 500 14 14 server!pid_file = /var/run/cherokee.pid 15 15 server!server_tokens = full 16 16 server!encoder!gzip!allow = html,html,txt 17 server!panic_action= %prefix%/bin/cherokee-panic 17 server!panic_action = %prefix%/bin/cherokee-panic 18 server!mime_file = %sysconfdir%/cherokee/mime.types 19 server!mime_file = %sysconfdir%/cherokee/mime.compression.types 18 20 19 21 # Default virtual server 20 22 # 21 23 vserver!default!document_root = %wwwroot% 22 vser ber!default!directory_index = index.php,index.html24 vserver!default!directory_index = index.php,index.html 23 25 24 26 vserver!default!directory!/!handler = common … … 45 47 # Icons 46 48 # 49 icons!default = unknown.png 47 50 icons!directory = folder.png 48 51 icons!parent_directory = back.png 49 icons!default = unknown.png50 52 51 53 icons!file!core = core cherokee/trunk/cherokee/virtual_server.c
r283 r340 347 347 348 348 static ret_t 349 add_directory_index (char * alias, void *data)349 add_directory_index (char *index, void *data) 350 350 { 351 351 cherokee_virtual_server_t *vserver = VSERVER(data); 352 352 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)); 354 356 return ret_ok; 355 357 }