|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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" |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
Quote:
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? |
|
#5
|
|||
|
|||
|
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? ![]() |
|
#6
|
|||
|
|||
|
no idea Madcow???
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > SSI probelm on apache. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|