previewing SSIs locally in OS X - ehMac.ca
Facebook
Twitter
YouTube
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read Advertise


Reply
 
LinkBack Thread Tools Display Modes
Old May 27th, 2003, 05:43 PM   #1
Honourable Citizen
 
CubaMark's Avatar
 
Join Date: Feb 2001
Location: Nova Scotia, Canada
Posts: 17,718
Send a message via AIM to CubaMark
Red face

So here's the deal.... I maintain a copy of our organization's website on my hard drive, since as webmaster it's good to preview your updates before FTPing to the server, right?

So we've decided to toss those $%^&U frames, and go with Server-Side Includes (SSIs) instead, which will enable people to bookmark specific pages (which they couldn't do under frames) and also to facilitate site-design changes in the future.

Problem 1: the test files don't work on our server, but that's something I need to work out with the host.

Problem 2: I can't preview SSIs from my hard drive, it seems. At least, not in the way that I used to do it (just load up the main index page in Safari, and 'boom' - it's there!).

The only solution that comes to mind is that I drop my site files into the "Sites" folder of my user subdirectory, and use OS X's built-in Apache webserver to serve up the files... but I'll still need, I believe?, to "turn on" SSIs somehow.

Anyone have some sound words of advice?

M.
__________________
* * * * * * * * * * * * * * * * * * * *
The Cuban Revolution as Socialist Human Development Brill Books (Amazon Paperback)
CubaMark is offline   Reply With Quote
Sponsored Links
Advertisement
 
Old May 27th, 2003, 10:00 PM   #2
Mac Guru
 
monokitty's Avatar
 
Join Date: Jan 2002
Posts: 14,627
Post

Quote:
The only solution that comes to mind is that I drop my site files into the "Sites" folder of my user subdirectory, and use OS X's built-in Apache webserver to serve up the files... but I'll still need, I believe?, to "turn on" SSIs somehow.
This is not possible. See my explantion below why it isn't. You can't just "turn on" SSI support.

Quote:
Problem 2: I can't preview SSIs from my hard drive, it seems. At least, not in the way that I used to do it (just load up the main index page in Safari, and 'boom' - it's there!).
That's because SSI is not built into browsers. SSI is depentant on a server that supports it. So yes, in order to test SSI, you would need upload the page to a server that supports it.

Quote:
Problem 1: the test files don't work on our server, but that's something I need to work out with the host.
See above. Your server needs to be able to support SSIs in order for them to work (unless you're talking about other files...).
__________________
ACMT
MacBook Pro (15-inch, Mid 2012) 2.3 GHz Core i7, 16GB, 256GB M4 SSD
iPhone 8 - 64GB S/G Sound System Audio Engine A2 Display UltraSharp U2412M 24"
Custom Built Gaming PC Kaby Lake Edition | 16GB DDR4 | GTX 1070 8G
monokitty is offline   Reply With Quote
Old May 27th, 2003, 10:24 PM   #3
Honourable Citizen
 
CubaMark's Avatar
 
Join Date: Feb 2001
Location: Nova Scotia, Canada
Posts: 17,718
Send a message via AIM to CubaMark
Post

Lars,

Could you clarify? Does that mean the Apache webserver that's built into OSX does not support SSIs ??? Surely it must!

My webserver does support them... I just forgot to change the file extension to ".shtml" - silly me.

The question remains: can I do local previews via Apache on my own HD? I often work in cafes, etc., where there's no WiFI or other connectivity, and not being able to preview would put a serious kink in my web-authoring style, man...



M
__________________
* * * * * * * * * * * * * * * * * * * *
The Cuban Revolution as Socialist Human Development Brill Books (Amazon Paperback)
CubaMark is offline   Reply With Quote
 
Old May 27th, 2003, 11:34 PM   #4
Assured Advertiser
Honourable Citizen
 
jfpoole's Avatar
 
Join Date: Sep 2002
Location: Waterloo, Ontario
Posts: 2,198
Post

CubaMark,

There's a good Apache Tutorial on how to enable server-side includes here. You'll have to edit /etc/httpd/httpd.conf, then restart the webserver, but it shouldn't be too bad.

Let me know if you have any problems.
jfpoole is offline   Reply With Quote
Old May 28th, 2003, 09:10 AM   #5
Honourable Citizen
 
CubaMark's Avatar
 
Join Date: Feb 2001
Location: Nova Scotia, Canada
Posts: 17,718
Send a message via AIM to CubaMark
Talking

Thanks, jfpoole, I'll check it out, and report on my progress in the coming days...


M
__________________
* * * * * * * * * * * * * * * * * * * *
The Cuban Revolution as Socialist Human Development Brill Books (Amazon Paperback)
CubaMark is offline   Reply With Quote
Old May 28th, 2003, 09:54 AM   #6
Mac Guru
 
monokitty's Avatar
 
Join Date: Jan 2002
Posts: 14,627
Post

Quote:
Lars,

Could you clarify? Does that mean the Apache webserver that's built into OSX does not support SSIs ??? Surely it must!
I think it's supported in your browser when surfing web sites online that use SSI, but I don't think the Apacge webserver in OS X supports it offline. Although I'm not the expert, that's what I think.
__________________
ACMT
MacBook Pro (15-inch, Mid 2012) 2.3 GHz Core i7, 16GB, 256GB M4 SSD
iPhone 8 - 64GB S/G Sound System Audio Engine A2 Display UltraSharp U2412M 24"
Custom Built Gaming PC Kaby Lake Edition | 16GB DDR4 | GTX 1070 8G
monokitty is offline   Reply With Quote
Old May 28th, 2003, 03:16 PM   #7
Honourable Citizen
 
CubaMark's Avatar
 
Join Date: Feb 2001
Location: Nova Scotia, Canada
Posts: 17,718
Send a message via AIM to CubaMark
Cool

Label this one man...

With a little help from our friendly community network tech, my Apache now serves up SSIs locally, so I can offline-edit my website.

Wickedly great. Insanely great!


M
__________________
* * * * * * * * * * * * * * * * * * * *
The Cuban Revolution as Socialist Human Development Brill Books (Amazon Paperback)
CubaMark is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Thoughts on the Intel Apple pdksh Anything Mac 26 May 7th, 2008 04:05 PM
When OS X sfw. isn't OS X sfw. MACSPECTRUM Everything Else, eh! 22 Jan 21st, 2006 10:24 PM
OS X Server Experiences? How difficult is it to admin? jdurston Anything Mac 1 Oct 26th, 2005 01:26 PM
Mac G4 867 + OS X = LC III MacAndy Mac, iPhone, iPad and iPod Help & Troubleshooting 5 Apr 14th, 2005 11:53 PM
Migrating OS X from Old iMac to PowerMac jfoster435 Mac, iPhone, iPad and iPod Help & Troubleshooting 2 Mar 19th, 2005 01:52 AM


All times are GMT -4. The time now is 05:14 AM.



Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Copyright 1999 - 2012, ehMac.ca All rights reserved. ehMac is not affiliated with Apple Inc. Mac, iPod, iTunes, iPhone, Apple TV are trademarks of Apple Inc. Content Relevant URLs by vBSEO 3.6.0 RC 2

Tribe.ca: Urban living in Toronto!