homeGeek CultureWebstoreeCards!Forums!Joy of Tech!AY2K!webcam

The Geek Culture Forums


Post New Topic  New Poll  Post A Reply
my profile | directory login | | search | faq | forum home
  next oldest topic   next newest topic
» The Geek Culture Forums   » Other Geeky Stuff   » Ask a Geek!   » Enableing SSI on laptop apache

 - UBBFriend: Email this page to someone!    
Author Topic: Enableing SSI on laptop apache
hillbilly geek
Single Celled Newbie
Member # 2867

Rate Member
Icon 5 posted July 31, 2004 09:00      Profile for hillbilly geek   Author's Homepage     Send New Private Message       Edit/Delete Post   Reply With Quote 
here's a nice easy question:
I've got a nice, new G4 12 Powerbook running OS 10.3.4
(yes, it's sweet. I love it! Wipe your chin.)

I've got apache and php running fine for testing my websites locally.... but my SSI's won't work.

I know it's just a very basic httpd.conf tweak, probably just uncommenting a line, but I haven't had time to do the reading on how to do this, and I don't want to screw up my local server.

[crazy]
can someone out there give me some pointers? I can post portions of the .conf file if needed

Posts: 3 | From: NC, USA | Registered: Jul 2004  |  IP: Logged
Richard
Geek Apprentice
Member # 2868

Icon 1 posted July 31, 2004 11:50      Profile for Richard   Author's Homepage     Send New Private Message       Edit/Delete Post   Reply With Quote 
Not sure exactly what your trying to include but you might want to look for the following commented line in your httpd.conf file:

#AddHandler server-parsed .shtml

~REM
(I'll look for more info)

Posts: 49 | From: Jacksonville, FL | Registered: Jul 2004  |  IP: Logged
Richard
Geek Apprentice
Member # 2868

Icon 1 posted July 31, 2004 11:52      Profile for Richard   Author's Homepage     Send New Private Message       Edit/Delete Post   Reply With Quote 
Okay I'll also need to know which version of Apache you are running... check out the following page for 2.0 it might help as well:

http://httpd.apache.org/docs-2.0/mod/mod_include.html

Posts: 49 | From: Jacksonville, FL | Registered: Jul 2004  |  IP: Logged
hillbilly geek
Single Celled Newbie
Member # 2867

Rate Member
Icon 1 posted August 01, 2004 12:55      Profile for hillbilly geek   Author's Homepage     Send New Private Message       Edit/Delete Post   Reply With Quote 
Apache/1.3.29 Server
..or so it claims [devil wand]

Posts: 3 | From: NC, USA | Registered: Jul 2004  |  IP: Logged
Mr. Dave
Geek
Member # 1977

Member Rated:
5
Icon 1 posted August 01, 2004 20:58      Profile for Mr. Dave     Send New Private Message       Edit/Delete Post   Reply With Quote 
I just did this on FreeBSD; it should be the same on MacOS.

First, make sure the lines
LoadModule includes_module ...
and
AddModule mod_include.c
are in Section 1 of your httpd.conf file.

Then, in your <Directory [DocumentRoot]> block, insert the command
Options +Includes


(NOTE: placing it here turns on SSI for the entire document tree; you can also put it in the <Directory> block for a subfolder to enable just that subtree.)

Finally, you need the lines
AddType text/html .shtml
AddHandler server-parsed .shtml
to tell Apache to parse .shtml files as HTML with SSI. Restart Apache, and you should be laughing.

Two thoughts: you might want to add index.shtml to your DirectoryIndex list, and you could also look into the XBitHack flag. I haven't tried turning this on yet, but it allows you to make a .html file server-parsable by setting its execute permission.

Good luck, and don't forget to come up for air, meals, etc.

--------------------
I'm not normally like this, but then I'm not normally normal.

Posts: 193 | From: Leverkusen Institute of Paleocybernetics | Registered: Jan 2003  |  IP: Logged


All times are Eastern Time  
Post New Topic  New Poll  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:

Contact Us | Geek Culture Home Page

2015 Geek Culture

Powered by Infopop Corporation
UBB.classicTM 6.4.0



homeGeek CultureWebstoreeCards!Forums!Joy of Tech!AY2K!webcam