Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GS3.1 and IIS6 and .htacess
#1
Hi folks.

Helping out a community group get a basic CMS up and running. Their hosting is on a IIS server and I only have ftp access, so no control panels etc.

I've been trying to block access to the xml files as per the normal apache .htaccess methods and also a web.config file placed in the root of GS as per a forum post here.

Code:
<?xml version="1.0"?>
<configuration>
    <location path="data">
        <system.web>
            <authorization>
                <deny users="*" />
            </authorization>
        </system.web>
    </location>
    <location path="data/uploads">
        <system.web>
            <authorization>
                <allow users="*" />
            </authorization>
        </system.web>
    </location>
</configuration>

Also tried adding a http handler to exclude xml
Code:
<httpHandlers>
    <add path="*.xml" verb="*" type="System.Web.HttpForbiddenHandler" />
</httpHandlers>

I usually dabble on apache/linux boxes so this is a bit beyond what I know. Should this be working or do I need to configure the hosting beyond just an ftp option?

Also is this the main reason for the non-apache warning? I haven't noticed anything else not working between my development xampp and the hosting. I haven't tried fancy urls and that's not a priority.

It is not allowing directory listings but not sure if it's a server setting or actually looking at the .htaccess file. Any suggestions to test if there's any translation of the .htaccess on the server.

Thanks
Kraves
Reply
#2
(2013-09-28, 09:44:11)kraves Wrote: Also is this the main reason for the non-apache warning? I haven't noticed anything else not working between my development xampp and the hosting. I haven't tried fancy urls and that's not a priority.

Yes, that's the reason for the warning (which can be disabled if you're sure your data and backup xml files are safe - that is, that cannot be viewed with a browser). If server software is not Apache, GS doesn't "know" if .htaccess is supported.
Reply




Users browsing this thread: 1 Guest(s)