apache and SetOutputFilter
Hi Fellas, I'm trying to configure apache to handle .shtml files. I don't know much about apache configuration, so i got some info from apache.org about this. i ended up with this config chunck # put in so we can use .shtml files in /home/httpd/includes <Directory "/home/httpd/includes"> Options +Includes # (took from http://www.apache.org/docs-2.0/mod/mod_include.html) <IfModule mod_include.c> AddType text/html .shtml <FilesMatch "\.shtml(\..+)?$"> SetOutputFilter INCLUDES </FilesMatch> </IfModule> </Directory> When i parse the config file i get this # httpd -t Syntax error on line 408 of /etc/httpd/conf/httpd.conf: Invalid command 'SetOutputFilter', perhaps mis-spelled or defined by a module not included in the server configuration any suggestions here? i'm using the apache that came with red hat 7.0 Thanks, --Brad
i figured it out, i have an old versin of apache (well sorta i guess this is only for apache 2.0) On Mon, Aug 27, 2001 at 03:24:39PM -0400, Brad Noyes wrote:
Hi Fellas, I'm trying to configure apache to handle .shtml files. I don't know much about apache configuration, so i got some info from apache.org about this. i ended up with this config chunck # put in so we can use .shtml files in /home/httpd/includes <Directory "/home/httpd/includes"> Options +Includes # (took from http://www.apache.org/docs-2.0/mod/mod_include.html) <IfModule mod_include.c> AddType text/html .shtml <FilesMatch "\.shtml(\..+)?$"> SetOutputFilter INCLUDES </FilesMatch> </IfModule> </Directory>
When i parse the config file i get this # httpd -t Syntax error on line 408 of /etc/httpd/conf/httpd.conf: Invalid command 'SetOutputFilter', perhaps mis-spelled or defined by a module not included in the server configuration
any suggestions here? i'm using the apache that came with red hat 7.0 Thanks, --Brad
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
You're half-right: the SetOutputHandler option is apparently for Apache 2.0 and most people should still be using Apache 1.3. However, SSI (what .shtml files are) should still work with Apache 1.3. The relative configuration lines are: Options +Includes In the <Directory> block, and: AddType text/html .shtml AddHandler server-parsed .shtml Either also in the directory block or with the rest of the add type/handler statements. Since I haven't actually used SSI, I'll just send you to the appropriate Apache documentation for Apache 1.3, the version that comes with RedHat: http://httpd.apache.org/docs/howto/ssi.html Hope this helps :) On Mon, 27 Aug 2001, Brad Noyes wrote:
i figured it out, i have an old versin of apache (well sorta i guess this is only for apache 2.0)
On Mon, Aug 27, 2001 at 03:24:39PM -0400, Brad Noyes wrote:
Hi Fellas, I'm trying to configure apache to handle .shtml files. I don't know much about apache configuration, so i got some info from apache.org about this. i ended up with this config chunck # put in so we can use .shtml files in /home/httpd/includes <Directory "/home/httpd/includes"> Options +Includes # (took from http://www.apache.org/docs-2.0/mod/mod_include.html) <IfModule mod_include.c> AddType text/html .shtml <FilesMatch "\.shtml(\..+)?$"> SetOutputFilter INCLUDES </FilesMatch> </IfModule> </Directory>
When i parse the config file i get this # httpd -t Syntax error on line 408 of /etc/httpd/conf/httpd.conf: Invalid command 'SetOutputFilter', perhaps mis-spelled or defined by a module not included in the server configuration
any suggestions here? i'm using the apache that came with red hat 7.0 Thanks, --Brad
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
participants (2)
-
Brad Noyes
-
Dan Potter