Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > SSI on Mac OS X 10.3.5 help

SSI on Mac OS X 10.3.5 help
Thread Tools
Fresh-Faced Recruit
Join Date: Dec 2004
Status: Offline
Reply With Quote
Dec 10, 2004, 12:54 PM
 
I've done the following:

1. Added "Includes" in httpd.conf
<Directory "/Library/WebServer/Documents/manual">
Options Indexes FollowSymlinks MultiViews Includes
AllowOverride None
Order allow,deny
Allow from all
</Directory>

2. In httpd.conf, uncommented
AddType text/html .shtml
AddHandler server-parsed .shtml

3. System Preferences -> Sharing -> Started Personal Web Sharing

4. In my Sites folder, I have two files (test.shtml & footer.html)
test.shtml:
<html>
<head></head>
<body>
this file
<!--#include virtual="footer.html"-->
this file
</body>
</html>

footer.html:
<html>
<head></head>
<body>
footer file
</body>
</html>

5. In Safari, http://IPAddress/~admin/test.shtml

output:
this file this file

Can someone tell me where I am wrong? Or can someone test what I have out? Thanks in advance!
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Dec 10, 2004, 01:14 PM
 
Originally posted by noDoggyBag:
test.shtml:
<html>
<head></head>
<body>
this file
<!--#include virtual="footer.html"-->
this file
</body>
</html>

footer.html:
<html>
<head></head>
<body>
footer file
</body>
</html>
I can see one error right off the bat: take out the <html>, <head>, and <body> taks from footer.html. They will hurt the HTML once it's working, because these parts of the HTML will be included. Only include the "footer file" section.

As for the rest, I can understand most of the problem here too: you've turned on SSI for the computer's main site, but not for home folders. However, I am not certain how to turn it on for home folders; I've never been able to get that part working right either. Can someone else help us out here?
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Dec 10, 2004, 02:05 PM
 
I've found another error. In your SSI, you need to have a space before the --> at the end of each call. If you don't have this, Apache will treat it as an ordinary comment. A large number of SSI problems can be traced to this error.

Unfortunately, this still isn't fixing the problem. Anyone else have any ideas?
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Dec 10, 2004, 05:34 PM
 
In httpd.conf try:-

<Directory /Users/*/Sites>
Options +MultiViews +Indexes +IncludesNoExec
</Directory>
Computer thez nohhh...
     
Fresh-Faced Recruit
Join Date: Dec 2004
Status: Offline
Reply With Quote
Dec 10, 2004, 07:09 PM
 
Doesn't seem to work for me. Anyone else?

Is it necessary since httpd.conf contains

# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
<IfModule mod_userdir.c>
UserDir Sites
</IfModule>
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:25 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2