The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




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)