SSIs
Hello,
I was having a problem where it was not parsing and just showing <!--#echo var="SERVER_NAME"--> in the HTML page. Drove me crazy for a while then I re-edited it and it worked. Like magic....
However, I also:
/scripts/rebuildhttpdconf
....
restarted the server (because numerous Apache restarts didn't solve it)
I wanted a Future Home of.., Coming Soon..., etc. for my new websites. I have these scritps to offer that you can place in your /root/cpanel3-skel/public_html directories. Remember based on this line out of /etc/httpd/httpd.conf SHTML files will open before PHP:
<IfModule mod_dir.c>
DirectoryIndex index.html index.wml index.cgi index.shtml index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml index.htm default.htm default.html home.htm
</IfModule>
index.shtml:
<center>
<h2>Coming Soon!</h2>
<h1>
The future home of
<!--#echo var="SERVER_NAME"-->
</h1>
<p>
Another great site hosted by<p>
<img src="http://YOURDOMAINHERE/images/logo.gif">
</center>
and in case you just can't get SHTML to work for you:
index.php:
<center>
<h2>Coming Soon!</h2>
<h1>
The future home of
<?php
echo $_SERVER['SERVER_NAME'];
?>
</h1>
<p>
Another great site hosted by<p>
<img src="http://YOURDOMAINHERE/images/logo.gif">
</center>
Good luck,
Brad