LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-30-2004, 08:03 AM   #1
pmedes
LQ Newbie
 
Registered: Aug 2003
Location: Owatonna MN
Distribution: SuSE pro 9.1
Posts: 16

Rep: Reputation: 0
Unhappy How do I get my Server Side Includes to work?


I tried including the following directives in my httpd.conf.local file,
but my SSI commands are still not working in my .shtml file:

Options Includes
AddHandler server-parsed .shtml
 
Old 10-30-2004, 11:14 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 46
I believe it should be

Options Include (Singular not Plural)
 
Old 11-02-2004, 06:01 AM   #3
@ngelot
Member
 
Registered: Oct 2004
Posts: 84

Rep: Reputation: 15
Nope - it's Includes...

I'm struggeling with the same...

Have you tried
Code:
Options ExecCGI Includes
@ngelot
 
Old 11-03-2004, 05:52 AM   #4
pmedes
LQ Newbie
 
Registered: Aug 2003
Location: Owatonna MN
Distribution: SuSE pro 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
Thumbs down

That's for CGI scripts, I'm trying to do Server Side Includes (SSI).
I did try the following after reading the Apache2 documentation on www.apache.org:

<Directory /srv/www/htdocs>
# added for Server Side includes (SSI) in htdocs
Options +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</Directory>
<Directory /srv/www/cgi-bin>
# added for perl cgi scripts
AddHandler cgi-script .cgi
</Directory>

The second part works; my .cgi scripts run, but the
SSI scripts (.shtml) don't. It may be because I'm trying
to run them locally (localhost).
 
Old 11-08-2004, 02:25 AM   #5
pmedes
LQ Newbie
 
Registered: Aug 2003
Location: Owatonna MN
Distribution: SuSE pro 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
SSI

It turned out to be my .shtml script.
It was missing the space before the "-->".
Unfortunately, that was an errata in the book
"CGI Programming with Perl" 2nd edition.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
External includes fail to work loccom Programming 1 08-09-2005 09:09 PM
help with client side NFS-firewall setup and server side NIS-firewall setup niverson Linux - Networking 3 02-02-2004 08:52 AM
Logitech Mouse: side button won't work hopper02 Linux - Hardware 0 11-21-2003 02:44 PM
How would I dialup using pcmcia 56k? (Includes side question about X configing) GuPH Slackware 12 07-28-2003 12:53 PM
Server Side Includes warlock33 Linux - Software 2 02-13-2003 12:58 AM


All times are GMT -5. The time now is 01:59 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration