Website access denied [.htaccess and hence index.shtml ignored]
FIXED- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Website access denied [.htaccess and hence index.s...
02-03-2017 5:08 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
This is one for which I have just raised a ticket, but others might have the same problem.
From today 2nd March, access to my numerous sites (on the 'home pages' servers) has been unpredictable and generally unavailable.
All sites have home page index files of index.shtml (because they use server-side includes) but act as if the index files were index.html.
The .htaccess files themselves (which define the use of .shtml) appear OK, but are apparently being ignored by Apache!
Fixed! Go to the fix.
Re: Website access denied [.htaccess and hence index.shtml ignored]
02-03-2017 6:46 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
The problem occurs on Forec9 homepages for me too. It looks like SSI commands are not being recognised and parsed.
It's not just index.shtml that has the problem, anything.shtml does too. However the Apache AddType and DirectoryIndex directives in .htaccess must be being processed.
Re: Website access denied [.htaccess and hence index.shtml ignored]
02-03-2017 7:33 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks spraxyt.
Not sure about "...Apache AddType and DirectoryIndex directives in .htaccess must be being processed." however, at least for my sites.
My .htaccess files all read:
AddType text/html .shtml
AddHandler server-parsed .shtml
DirectoryIndex index.shtml
but if http://www.somewebsite.com on PN home pages servers has an index.shtml and has no index.html, access is being bounced with a Forbidden - you do not have permission....
If if the site does also have an index.html (as well as index.shtml) in the root directory, it loads that instead.
But I can access the site correctly longhand using http://www.somewebsite.com/index.shtml
Apache isn't getting as far as trying to parse the <!--#include virtual="someurl" --> - it isn't even loading the right page!
Re: Website access denied [.htaccess and hence index.shtml ignored]
02-03-2017 8:48 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
My .htaccess has the first two of those lines, but the third is
DirectoryIndex index.shtml index.htm index.html
However my pages are working again now - though a page refresh (Ctrl-F5) is needed to reload it.
Re: Website access denied [.htaccess and hence index.shtml ignored]
03-03-2017 8:49 AM - edited 03-03-2017 8:57 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
CSC tell me that in response to my ticket they have "restored the sites' permissions" - which this (Fri) morning made no difference. The problem appears clearer by the minute and is always replicable: Apache is ignoring or misinterpreting my .htaccess directives (which have been unchanged for years).
It is not a permissions problem per se: when told to find the index page Apache goes looking for index.html, doesn't find it, and replies with a 403 ("smacky wrist - stop trying to list the root directory") rather than a 404 (which it would have done if I had been trying to load a page other than an index page).
Re: Website access denied [.htaccess and hence index.shtml ignored]
04-03-2017 9:09 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I am also seeing this issue. SSIs not always working. (Page top and tail menus not displayed)
Sometimes also get:
Forbidden You don't have permission to access / on this server. (no message number on page for 403 on tap heading)
Raiding a ticket.
Re: Website access denied [.htaccess and hence index.shtml ignored]
04-03-2017 11:42 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
This "now it works and now it doesn't" behaviour has already been seen by PN's CSC who are investigating.
Because in my case either my index.shtml page is loaded successfully or Apache tries to load index.html (which isn't there, hence a 403 response), one obvious possible cause is one of the Apache server-farm servers having SSI disabled; such a server would indeed read a .htaccess with SSI-based operands and simply ignore them. This particular server presumably doesn't have a Includes (or Includes NOExec) or the AllowOverride optional directives in its configuration.
Re: Website access denied [.htaccess and hence index.shtml ignored]
04-03-2017 4:45 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Website access denied [.htaccess and hence index.shtml ignored]
04-03-2017 7:56 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Tnx. However I also want SSI #includes to work in the .shml files, and as others have commented this is hit and miss at present.
Re: Website access denied [.htaccess and hence index.shtml ignored]
05-03-2017 1:37 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I set up test pages in a special folder to get a better idea of what was going on. The folder contains both index.shtml and index.html files, and the printed output identifies which is loaded.
As mentioned as least one of the servers in the farm ignores my .htaccess DirectoryIndex entry and loads index.html even though index.shtml is listed first. However if index.shtml is specifically requested it displays but the SSI instructions in the file are ignored. Refreshing the page generally gives a working server which displays the SSI information.
Unfortunately I don't think there's a way to identify the hostname of the Homepages server delivering the page.
Re: Website access denied [.htaccess and hence index.shtml ignored]
05-03-2017 10:55 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Absolutely spot on!
Since the problem has been extant for at least four days, the quickest way to identify which Apache instance is badly configured is to put each instance offline, execute a few accesses (or ask one of us to do so - CSC's own access may be proxied or cached), and put the instance back up again.
Brute force and 'unprofessional' perhaps, but home-pages server pages are not, by definition, doing anything vital such as executing PHP or directly updating a database.
Re: Website access denied [.htaccess and hence index.shtml ignored]
08-03-2017 5:11 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
For those with a similar problem, it has (on 8th March) been placed 'on hold' by PN for a week...
Re: Website access denied [.htaccess and hence index.shtml ignored]
08-03-2017 10:21 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I suspect topic https://community.plus.net/t5/Everything-else/Forbidden-on-website-folders-that-do-not-have-an-index... might reflect a different manifestation of this problem.
Re: Website access denied [.htaccess and hence index.shtml ignored]
08-03-2017 11:39 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I'd hoped @bobpullen would have seen this topic by now and had the issue investigated!
jelv (a.k.a Spoon Whittler) Why I have left Plusnet (warning: long post!) Broadband: Andrews & Arnold Home::1 (FTTC 80/20) Line rental: Pulse 8 Home Line Rental (£14.40/month) Mobile: iD mobile (£4/month) |
Re: Website access denied [.htaccess and hence index.shtml ignored]
09-03-2017 10:58 AM - edited 09-03-2017 11:22 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I'm under the impression that some work was done a couple of nights ago in a bid to resolve this. Looks like there are still some issues though based on recent replies and the thread here.
We're looking into it...
Edit: ref 98399
Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Website access denied [.htaccess and hence index.s...