|
|
|
|
||||||
| comp.info.servers.unix Web servers for UNIX platforms. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
HEllo,
I have been reading the docs on Server Side Includes. All the examples mention using .shtml extensions. I am wondering can i user something like main.html (specifiy the entire file? ) i really do not want to turn in on for all html pages Thanks |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On 4 Aug 2005 01:02:16 -0700, rp <homerpuck@hotmail.com> wrote:
> HEllo, > I have been reading the docs on Server Side Includes. > All the examples mention using .shtml extensions. > I am wondering can i user something like main.html (specifiy the entire > file? ) i really do not want to turn in on for all html pages You can parse other files depending upon what filename extensions you put in the space separated list at the end of directive: AddHandler server-parsed .shtml But it is best NOT to parse all html, especially if you have any files that take unknown user input (like guestbooks). But you can implement it for specific directories, or within Files or FilesMatch wrappers (putting it in .htaccess if allowed, would apply to that dir and any subdirectories under that). Or you can selectively do it for specific files by setting execute bits (see docs for XBitHack). |
|
![]() |
| Outils de la discussion | |
|
|