LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   apache include mod help (https://www.linuxquestions.org/questions/linux-server-73/apache-include-mod-help-653078/)

sir-lancealot 07-02-2008 09:02 AM

apache include mod help
 
Moving a website off an older server to a newer clustered one and having an include issue. The files that get generated are .shtml (it's a custom app) and that part is working.

The app also includes other folders, but the include is not working, so the page no longer shows any errors, but the view source is loaded with includes (not working) such as;
<!--#INCLUDE VIRTUAL="include/head.html"-->

I am trying to compare the conf files and I do see;
LoadModule include_module modules/mod_include.so

I tried to add that to the new server conf (the module is there) so I add the load line, restart apache and get the following error;
Syntax error on line 56 of /home/mcp/local/apache2/conf/httpd.conf: module include_module is built-in and can't be loaded

Both are running apache 2.0, anyone have some .02 to throw out there as what else needs to be installed or loaded.

Thanks

Mr. C. 07-03-2008 02:08 AM

If apache is telling you the module is built-in, it is. You don't need to load it as a separate loadable module.

As to why the html is not being server-side included, does the context have permission to enable server side includes?

See: http://httpd.apache.org/docs/2.2/howto/ssi.html


All times are GMT -5. The time now is 03:16 PM.