Peter Bradley wrote:
Ysgrifennodd Per Jessen:
Just use the Apache manual and ignore most others.
That makes sense. The only trouble is that I couldn't understand it. I still don't know if I should have mod_include installed, and if I do how to do it, or even whether I already have it installed.
Granted, the apache manual is perhaps not the most easily digested material in the world, but when you're going to be playing around with apache, you'll have to come to terms with it :-) 1. Yes, you need mod_include installed. 2. in openSUSE 11.0 this is done by amending the APACHE_MODULES line in /etc/sysconfig/apache2 (if/as necessary). I don't know if (2) is most easily done through YaST or not, I just use vi.
I use 'AddOutputFilter INCLUDES shtml' instead of the addhandler.
I tried this both in addition to the addhandler and instead of it. When I had both, there was no change at all. The html was not parsed. When I replaced AddHandler with AddOutputFilter, the html was parsed, but the include was not included (i.e. it was just treated as a comment).
Are you making these changes globally, or just for one virtual host? I would perhaps start out with doing it just for the one you're testing on, then make the change global later on. My setup has SSI enabled globally, and I've put it in mod_mime-defaults.conf : # # Filters allow you to process content before it is sent to the client. # # 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 AddOutputFilter INCLUDES phtml XBitHack Off SSITimeFormat "%Y/%m/%d %T %Z" Also remember to enable SSI in the Options you're setting for the virtual host. SSI is off by default (see default-server.conf). cheers Per -- /Per Jessen, Zürich -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org