Posts: 120
Threads: 22
Joined: Dec 2015
2017-10-06, 01:35:18
(This post was last modified: 2017-10-06, 01:36:23 by jwzumwalt.)
I need to link to an onsite dir & index.htm page
(I have numerous media directories and I have my own custom php page that creates thumbnails for a gallery - it automatically creates a index.htm in the subdirectory)
When I create a link to the index.htm file I get a "Forbidden" error. How can I allow index.htm to run in that sub directory?dir &
Thanks,
jwzumwalt
(\__/)
(='.'=)
(")_(")
Posts: 6,266
Threads: 181
Joined: Sep 2011
Where are they located? theme?
Add an allow htaccess file ( you can find them in admin/tmp)
Posts: 120
Threads: 22
Joined: Dec 2015
2017-10-06, 10:44:55
(This post was last modified: 2017-10-07, 12:00:12 by jwzumwalt.)
(2017-10-06, 02:20:33)shawn_a Wrote: Where are they located? theme?
Add an allow htaccess file ( you can find them in admin/tmp)
Still not getting it to work. I ether get a forbidden, or server internal error.
The directory I am trying to give user access is off the "uploads" directory.
I am upgrading a mega-site so I might have to come back to this problem.
Thanks,
jwzumwalt
(\__/)
(='.'=)
(")_(")
Posts: 305
Threads: 15
Joined: Mar 2014
2017-10-09, 22:07:07
(This post was last modified: 2017-10-09, 22:07:37 by Tyblitz.)
(2017-10-06, 10:44:55)jwzumwalt Wrote: (2017-10-06, 02:20:33)shawn_a Wrote: Where are they located? theme?
Add an allow htaccess file ( you can find them in admin/tmp)
Still not getting it to work. I ether get a forbidden, or server internal error.
The directory I am trying to give user access is off the "uploads" directory.
I am upgrading a mega-site so I might have to come back to this problem.
Hi jw,
The uploads directory has a default .htaccess (which you can also
view on Github).
In fact if you look at
line 30, that might be the problem. You mentioned index.htm, and the <FilesMatch> has a DENY rule for files ending in .htm. So you'll either have to adjust the regex (e.g. remove all the [mM] blocks), or adjust your index files to have the
.html extension instead (which is, remarkably, not affected by the directive).
Depending on your Apache version (2.2- vs. 2.4+), and whether you have mod_access_compat enabled, you might need to do couple of tweaks. For more details, you can read
this issue about htaccess config in GetSimpleCMS.
Posts: 6,266
Threads: 181
Joined: Sep 2011
I guess we can add html to that, odd that it was missed.
Posts: 120
Threads: 22
Joined: Dec 2015
Quote:Hi jw,
The uploads directory has a default .htaccess (which you can also view on Github).
In fact if you look at line 30, that might be the problem. You mentioned index.htm, and the <FilesMatch> has a DENY rule for files ending in .htm. So you'll either have to adjust the regex (e.g. remove all the [mM] blocks), or adjust your index files to have the .html extension instead (which is, remarkably, not affected by the directive).
Depending on your Apache version (2.2- vs. 2.4+), and whether you have mod_access_compat enabled, you might need to do couple of tweaks. For more details, you can read this issue about htaccess config in GetSimpleCMS.
Thanks Tyblitz, that was the problem...
I just commented out all the deny and the htm & php work.
I'll come back later and figure out how to make it a case by
case basis for the desired directory.
Thanks,
jwzumwalt
(\__/)
(='.'=)
(")_(")