Forum Moderators: phranque

Message Too Old, No Replies

Problems with server side includes

         

enchant

3:45 pm on Apr 14, 2005 (gmt 0)

10+ Year Member



I'm moving to a new server. One of the problems that I've run into is that server side includes aren't working.

At the bottom of many of my pages, I have this code:
<!--#include virtual="footer.shtml"-->

On my new server, footer.shtml is not displaying. In my httpd.conf file, I have:

<Directory /usr/local/httpd/htmldocs/virtual>
AllowOverride AuthConfig
Options +Includes
</Directory>

Elsewhere, I have:

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

Is there something else I'm missing? I've tried adding
XBitHack on
but that didn't make a difference.

[edited by: jdMorgan at 7:57 pm (utc) on April 14, 2005]
[edit reason] Removed specifics per TOS. [/edit]

enchant

3:52 pm on Apr 14, 2005 (gmt 0)

10+ Year Member



Doh! Within seconds after posting this, I found the problem.

<Directory /usr/local/httpd/htmldocs/virtual>

Needed to be:
<Directory "/usr/local/httpd/htmldocs/virtual">

(with the quotes)

jdMorgan

7:58 pm on Apr 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey! Well, glad you got it working... :)

Jim