public inbox for gentoo-server@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-server] Apache SSI
@ 2005-10-05 18:54 A. Khattri
  2005-10-05 19:42 ` Luca Longinotti
  0 siblings, 1 reply; 6+ messages in thread
From: A. Khattri @ 2005-10-05 18:54 UTC (permalink / raw
  To: gentoo-server


The include module is loaded, I have added handlers for .shtml files and
enabled "Options +IncludeNOEXEC" but I can't get server-side includes to
work. What am I doing wrong?


-- 

-- 
gentoo-server@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-server] Apache SSI
  2005-10-05 18:54 [gentoo-server] Apache SSI A. Khattri
@ 2005-10-05 19:42 ` Luca Longinotti
  2005-10-05 21:44   ` A. Khattri
  2005-10-05 22:16   ` [gentoo-server] Apache SSI [SOLVED] A. Khattri
  0 siblings, 2 replies; 6+ messages in thread
From: Luca Longinotti @ 2005-10-05 19:42 UTC (permalink / raw
  To: gentoo-server

[-- Attachment #1: Type: text/plain, Size: 396 bytes --]

A. Khattri wrote:

>The include module is loaded, I have added handlers for .shtml files and
>enabled "Options +IncludeNOEXEC" but I can't get server-side includes to
>work. What am I doing wrong?
>
>
>  
>
The correct line would be "Options +Includes" for SSI, "ExecCGI" is used
to permit the execution of CGI scripts inside a directory and/or server.
Best regards, CHTEKK aka. Luca Longinotti.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-server] Apache SSI
  2005-10-05 19:42 ` Luca Longinotti
@ 2005-10-05 21:44   ` A. Khattri
  2005-10-05 22:03     ` Bertrand CHERRIER
  2005-10-05 22:16   ` [gentoo-server] Apache SSI [SOLVED] A. Khattri
  1 sibling, 1 reply; 6+ messages in thread
From: A. Khattri @ 2005-10-05 21:44 UTC (permalink / raw
  To: gentoo-server

On Wed, 5 Oct 2005, Luca Longinotti wrote:

> A. Khattri wrote:
>
> >The include module is loaded, I have added handlers for .shtml files and
> >enabled "Options +IncludeNOEXEC" but I can't get server-side includes to
> >work. What am I doing wrong?
> >
> >
> >
> >
> The correct line would be "Options +Includes" for SSI, "ExecCGI" is used
> to permit the execution of CGI scripts inside a directory and/or server.
> Best regards, CHTEKK aka. Luca Longinotti.

I have "Options +Includes" inside a VirtHost config.

I have the .shtml handler in the global config.

Im see a LoadModule line for mod_include.

This is on a server that was rebuilt yesterday - so Im using the all new
Apache layout (which is quite different from the old setup).


-- 

-- 
gentoo-server@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-server] Apache SSI
  2005-10-05 21:44   ` A. Khattri
@ 2005-10-05 22:03     ` Bertrand CHERRIER
  2005-10-05 22:09       ` A. Khattri
  0 siblings, 1 reply; 6+ messages in thread
From: Bertrand CHERRIER @ 2005-10-05 22:03 UTC (permalink / raw
  To: gentoo-server

Hi,

I had the same problem after upgrading to the new scheme ...
in your httpd.conf , make sure you've this :
# 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

(the last two lines must be uncommented)

@+

A. Khattri a écrit :

>On Wed, 5 Oct 2005, Luca Longinotti wrote:
>
>  
>
>>A. Khattri wrote:
>>
>>    
>>
>>>The include module is loaded, I have added handlers for .shtml files and
>>>enabled "Options +IncludeNOEXEC" but I can't get server-side includes to
>>>work. What am I doing wrong?
>>>
>>>
>>>
>>>
>>>      
>>>
>>The correct line would be "Options +Includes" for SSI, "ExecCGI" is used
>>to permit the execution of CGI scripts inside a directory and/or server.
>>Best regards, CHTEKK aka. Luca Longinotti.
>>    
>>
>
>I have "Options +Includes" inside a VirtHost config.
>
>I have the .shtml handler in the global config.
>
>Im see a LoadModule line for mod_include.
>
>This is on a server that was rebuilt yesterday - so Im using the all new
>Apache layout (which is quite different from the old setup).
>
>
>  
>

-- 
Bertrand CHERRIER
chr@linux-nc.org
Linux chr 2.6.13-gentoo-r2 #5 Mon Sep 26 08:10:41 NCT 2005 x86_64 AMD Athlon(tm) 64 Processor 3700+ AuthenticAMD GNU/Linux
-----
Bow before me, for I am root

-- 
gentoo-server@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-server] Apache SSI
  2005-10-05 22:03     ` Bertrand CHERRIER
@ 2005-10-05 22:09       ` A. Khattri
  0 siblings, 0 replies; 6+ messages in thread
From: A. Khattri @ 2005-10-05 22:09 UTC (permalink / raw
  To: gentoo-server

On Thu, 6 Oct 2005, Bertrand CHERRIER wrote:

> Hi,
>
> I had the same problem after upgrading to the new scheme ...
> in your httpd.conf , make sure you've this :
> # 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
>
> (the last two lines must be uncommented)

Im running Apache 1.x so this directive is not available.


-- 

-- 
gentoo-server@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-server] Apache SSI [SOLVED]
  2005-10-05 19:42 ` Luca Longinotti
  2005-10-05 21:44   ` A. Khattri
@ 2005-10-05 22:16   ` A. Khattri
  1 sibling, 0 replies; 6+ messages in thread
From: A. Khattri @ 2005-10-05 22:16 UTC (permalink / raw
  To: gentoo-server

On Wed, 5 Oct 2005, Luca Longinotti wrote:

> The correct line would be "Options +Includes" for SSI, "ExecCGI" is used
> to permit the execution of CGI scripts inside a directory and/or server.
> Best regards, CHTEKK aka. Luca Longinotti.

Despite the documentation saying you can put Options inside a VirtHost
config, I had to put "Options +IncludeNOEXEC" inside a <Directory> tag.

Its working fine now - thanks for the help.


-- 

-- 
gentoo-server@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-10-05 22:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-05 18:54 [gentoo-server] Apache SSI A. Khattri
2005-10-05 19:42 ` Luca Longinotti
2005-10-05 21:44   ` A. Khattri
2005-10-05 22:03     ` Bertrand CHERRIER
2005-10-05 22:09       ` A. Khattri
2005-10-05 22:16   ` [gentoo-server] Apache SSI [SOLVED] A. Khattri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox