]> granicus.if.org Git - apache/commitdiff
We must set the MIME-type for .shtml files to text/html if we want them
authorRyan Bloom <rbb@apache.org>
Sat, 15 Jun 2002 07:20:59 +0000 (07:20 +0000)
committerRyan Bloom <rbb@apache.org>
Sat, 15 Jun 2002 07:20:59 +0000 (07:20 +0000)
to be parsed for SSI tags.  Add the config for that to the default
config file so that it is easier to enable .shtml parsing.

PR: 9787
Submitted by: Dave Dyer <ddyer@real-me.net>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95693 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
docs/conf/httpd-std.conf.in
modules/mappers/mod_userdir.c

diff --git a/CHANGES b/CHANGES
index 795884aedac5178cf393fe5ffef92932e4eafba4..1a113a667799976e01a511d36ed6622a3d565636 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,10 @@
 Changes with Apache 2.0.38
 
+  *) We must set the MIME-type for .shtml files to text/html if we want them
+     to be parsed for SSI tags.  Add the config for that to the default 
+     config file so that it is easier to enable .shtml parsing.
+     [Dave Dyer <ddyer@real-me.net>]
+
   *) Fixed a problem with 'make install' on ReliantUnix.
      [Jean-frederic Clere <jfrederic.clere@fujitsu-siemens.com>]
 
index 5c145478c43f4bb030cbfb1e8ed0df22ed6e5670..03ad021202b8154ae4de8573f4b5166ffd64cf6c 100644 (file)
@@ -843,6 +843,7 @@ AddHandler type-map var
 # To parse .shtml files for server-side includes (SSI):
 # (You will also need to add "Includes" to the "Options" directive.)
 #
+#AddType text/html .shtml
 #AddOutputFilter INCLUDES .shtml
 
 #
index 85c32af08f0b2601aaf0faa9d5fd26a15b4bdae8..7d874bf5fd929d8f22f7a530c84fe7ee7c4eafe7 100644 (file)
@@ -347,12 +347,12 @@ static int translate_userdir(request_rec *r)
                                          r->pool)) == APR_SUCCESS
                                              || rv == APR_INCOMPLETE))) {
             r->filename = apr_pstrcat(r->pool, filename, dname, NULL);
-           /* XXX: Does this walk us around FollowSymLink rules?
+            /* XXX: Does this walk us around FollowSymLink rules?
              * When statbuf contains info on r->filename we can save a syscall
-            * by copying it to r->finfo
-            */
-           if (*userdirs && dname[0] == 0)
-               r->finfo = statbuf;
+             * by copying it to r->finfo
+             */
+            if (*userdirs && dname[0] == 0)
+                r->finfo = statbuf;
 
             /* For use in the get_suexec_identity phase */
             apr_table_setn(r->notes, "mod_userdir_user", w);