hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : SSI ?
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

SSI ?

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 10-19-2000, 03:05 PM
Shooter Shooter is offline
Newbie
 
Join Date: Sep 2000
Location: San Diego's North County
Posts: 21
Question

OK, I'm still having problems getting SSIs to work. I'm sure I'm making a simple, fundamental error. This is what I'm including in the index.html source:

<!--#include virtual="footer.shtm" -->

I obviously have a footer.shtm file with the text that I want inserted (without HTML, BODY, etc tags). I have enabled SSI in Plesk (verified in the httpsd.conf file as "+Includes". I have also tried to include it as "footer.html" and "footer.txt" as well. What is the *correct* way to do this???

Thanx!
Wm


__________________
William Morton
Second Glance

Reply With Quote


Sponsored Links
  #2  
Old 10-19-2000, 03:37 PM
jtan15 jtan15 is offline
Aspiring Evangelist
 
Join Date: Jul 2000
Posts: 382
Well, unless you specify that .html files can be SSI's, I'm pretty sure it won't work. Try renaming it to .shtml, or adding this to your httpd.conf/.htaccess file:

AddType text/x-server-parsed-html .html

Hope this helps.

Reply With Quote
  #3  
Old 10-19-2000, 03:49 PM
Shooter Shooter is offline
Newbie
 
Join Date: Sep 2000
Location: San Diego's North County
Posts: 21
httpsd.conf

I found a /plesk/apache/conf/httpsd.conf file, but no httpd.conf/.htaccess. Found this section of httpsd.conf:

UserDir .

<Directory /*/public_html>
AllowOveride AuthConfig Limit Indexes Options
Options ExecCGI
</Directory>

DirectoryIndex index.htm index.php3 index.php index.shtml index.html

AccessFileName .htaccess

[Added your line here]

<Files ~ "^\.ht"
Order allow,deny
Deny from all
</Files>


Does that look right?
Wm


__________________
William Morton
Second Glance

Reply With Quote
Sponsored Links
  #4  
Old 10-19-2000, 04:51 PM
Website Rob Website Rob is offline
learning is in the doing
 
Join Date: Sep 2000
Location: Alberta, Canada
Posts: 3,109
Your Server is already setup for .shtm file, what you need to do is change how you call the file.

eg.
<!--#include virtual="footer.shtm" --> change to <!--#include virtual="footer.htm" --> or footer.txt

then for whatever page this is included on, change the extenstion of "that" page to .shtm.

Although you can call a file that is .txt, any HTML within that file will operate as HTML.

__________________
PotentProducts.com - for all your Hosting needs
Helping people Host, Create and Maintain their Web Site
ServerAdmin Services also available

Reply With Quote
  #5  
Old 10-24-2000, 04:26 PM
Shooter Shooter is offline
Newbie
 
Join Date: Sep 2000
Location: San Diego's North County
Posts: 21
Thumbs up .shtml

I changed all my files to *.shtml and voilà! It works fine now!
Thanx all!
Wm

__________________
William Morton
Second Glance

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?