Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 25th, 2005, 11:12 AM
seffi seffi is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 4 seffi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 10 m 3 sec
Reputation Power: 0
SSI probelm on apache.

hi,
i want to use server side includes and having problems doing it on my pc where i run a version 2 apache server.

i have added includes to options

Options Indexes FollowSymLinks Includes

i have uncommented these lines:

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddHandler server-parsed .shtml

nothing works. i also tried adding these lines to the end of the httpd.conf:

AddType text/x-server-parsed-html .shtml
AddType application/x-httpd-CGI .CGI

didnt work either.

i have also tried placing a .htaccess file in the directory contating:

Options Indexes FollowSymLinks Includes
AddType application/x-httpd-cgi .cgi
AddType text/x-server-parsed-html .html

didnt work.

when i did that last bit on a server where im hoting a website it worked just fine, but not on my damn pc!

id appreciate any help on that matter.

thnx

Reply With Quote
  #2  
Old July 25th, 2005, 11:20 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
What does your actual SHTML page look like?
And how does it render?
I assume, the tags show up to the browser, but please claify "does not work"

Reply With Quote
  #3  
Old July 25th, 2005, 11:34 AM
seffi seffi is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 4 seffi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 10 m 3 sec
Reputation Power: 0
thnx for the quick reply mad

its very simple, i have a file called test.shtml with this code in it:

Add a footer:
<!--#include file="footer.shtml" -->

the code in footer.shtml is:

This is a footer.

when i run the test.shtml on my pc all i get is (i use localhost.. to run it on apache i dont just open it in the browser..):

Add a footer:

on my hosting server i get:

Add a footer: This is the footer

Reply With Quote
  #4  
Old July 26th, 2005, 09:58 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
Quote:
Originally Posted by seffi
i use localhost.. to run it on apache i dont just open it in the browser..


Good job! =)

Your code all looks correct to me... If you view the page's HTML source code (from apache) do your SSI tags show up, or are they not even there?

Reply With Quote
  #5  
Old July 29th, 2005, 12:48 PM
seffi seffi is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 4 seffi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 10 m 3 sec
Reputation Power: 0
they are not there.

what would it mean if they were shown? is that possible? i mean, either they are regarded as comments and arent shown, or they are processed as a command, isnt that right?

Reply With Quote
  #6  
Old August 5th, 2005, 11:30 AM
seffi seffi is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 4 seffi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 10 m 3 sec
Reputation Power: 0
no idea Madcow???

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > SSI probelm on apache.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT