Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-07-2012, 02:28 AM   PM User | #1
durangod
Senior Coder

 
Join Date: Nov 2010
Posts: 1,191
Thanks: 217
Thanked 31 Times in 30 Posts
durangod is on a distinguished road
403 html vrs 403 shtml

Hi, i have a custom error page set for my deny access as 403.html

I have noticed recently in my error log that file not found 403.shtml

So i created the file 403.shtml with the same content as my html file so i have both in there now.

I dont understand why it would be looking for shtml not html, i guess i dont understand the difference, should i have both?

my other pages work fine 401,500 and they are html (not shtml) so is 403 special for some reason that it has to be shtml?

Thanks

Last edited by durangod; 08-07-2012 at 02:31 AM..
durangod is offline   Reply With Quote
Old 08-07-2012, 03:13 AM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,530
Thanks: 0
Thanked 503 Times in 494 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
.shtml pages allow server side includes whereas .html pages don't (unless you override the definition).

for example:

<!--#include virtual="header.html" -->
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Old 08-07-2012, 05:03 AM   PM User | #3
durangod
Senior Coder

 
Join Date: Nov 2010
Posts: 1,191
Thanks: 217
Thanked 31 Times in 30 Posts
durangod is on a distinguished road
Yes i understand basically how ssi works, and yes i do have ssi set up and i do use it. But you lost me, i dont know what that has to do with the 403 file, shouldnt it be just like the others 401 and 500, which are html.

Why would there need to be a special 403.shtml in addition to the 403.html

Last edited by durangod; 08-07-2012 at 05:25 AM..
durangod is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:17 AM.


Advertisement
Log in to turn off these ads.