Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
htaccess on CCGI (MediaWiki)
Topic Options
- 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
- :
- htaccess on CCGI (MediaWiki)
htaccess on CCGI (MediaWiki)
25-02-2009 11:58 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
We've been trying to follow the instructions for securing MediaWiki images at
http://www.mediawiki.org/wiki/Manual:Image_Authorization#Apache_Instructions_without_PATH_INFO_with_...
on CCGI. Unfortunately we've had a problem with denying access to pages; the .htaccess file with "deny from all" does not work. PNG files are happily still served by the server (note this is not the PHP problem others have mentioned and we've also tried added an "order" statement). We know the htaccess file is being read as if we put a corrupt entry in the file we get a "500 Internal Server Error".
Any ideas?
Thanks,
epitrope.
http://www.mediawiki.org/wiki/Manual:Image_Authorization#Apache_Instructions_without_PATH_INFO_with_...
on CCGI. Unfortunately we've had a problem with denying access to pages; the .htaccess file with "deny from all" does not work. PNG files are happily still served by the server (note this is not the PHP problem others have mentioned and we've also tried added an "order" statement). We know the htaccess file is being read as if we put a corrupt entry in the file we get a "500 Internal Server Error".
Any ideas?
Thanks,
epitrope.
Message 1 of 6
(1,629 Views)
5 REPLIES 5
Re: htaccess on CCGI (MediaWiki)
26-02-2009 12:08 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Posting the relevant contents (masking any domains etc if you want) of your .htaccess may help as we have no idea what you have done.
Message 2 of 6
(470 Views)
Re: htaccess on CCGI (MediaWiki)
26-02-2009 9:19 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I'm afraid it's nothing exciting at all - our .htaccess contains only
deny from all
As mentioned above the .htaccess is definitely being read as corrupting the files gives an internal server error - I guess this is similar functionality to "deny from all" but doesn't seem the right way to do things!
Thanks,
epitrope.
deny from all
As mentioned above the .htaccess is definitely being read as corrupting the files gives an internal server error - I guess this is similar functionality to "deny from all" but doesn't seem the right way to do things!
Thanks,
epitrope.
Message 3 of 6
(470 Views)
Re: htaccess on CCGI (MediaWiki)
26-02-2009 2:01 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Unfortunately blocking access with .htaccess won't work for php on our CGI platform, as we don't use the Apache mod_php extension but run php scripts as CGI. This means that apache specific settings such as those found in .htaccess are not honoured.
Message 4 of 6
(470 Views)
Re: htaccess on CCGI (MediaWiki)
26-02-2009 3:20 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Sorry to differ. Blocking access with .htaccess will work on CCGI. It's only PHP-specific settings that aren't honoured, not Apache directives in general.
Try something like:
Gabe
Try something like:
<FilesMatch "\.(htaccess|htpasswd|ini|phps|fla|psd|log|sh|pem|txt|png)$">
Order Allow,Deny
Deny from all
</FilesMatch>
IndexIgnore *
Gabe
Message 5 of 6
(470 Views)
Re: htaccess on CCGI (MediaWiki)
26-02-2009 7:57 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Great - that worked fine. Wouldn't have guessed the requirement to include the FilesMatch section!
Thanks,
epitrope.
Thanks,
epitrope.
Message 6 of 6
(470 Views)
Topic Options
- 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
- :
- htaccess on CCGI (MediaWiki)