• Resolved Abland

    (@abland)


    Hi,

    I manage a couple sites on GoDaddy shared – different accounts – and both went server 500. Turns out there’s an extra closing IfModule in the htaccess that the server doesn’t like:

    # Apache >= 2.3
    <IfModule mod_authz_core.c>
    <RequireAll>
    Require all Granted
    Require not env bad_bot
    </RequireAll>
    </IfModule>
    </IfModule>

    The unopened closing tag exists on some VPS sites without issue but GoDaddy shared was going server 500. When I removed that extra tag all worked as it should.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, I did a test and yes you are correct. The closing (/IfModule) belongs to the 6G Firewall rule. All you need to do is move the closing tag to the following located in your .htaccess file.

    # 6G:[USER AGENTS]
    <IfModule mod_setenvif.c>
    SetEnvIfNoCase User-Agent ([a-z0-9]{2000,}) bad_bot
    SetEnvIfNoCase User-Agent (archive.org|binlar|casper|checkpriv|choppy|clshttp|cmsworld|diavol|dotbot|extract|feedfinder|flicky|g00g1e|harvest|heritrix|httrack|kmccrew|loader|miner|nikto|nutch|planetwork|postrank|purebot|pycurl|python|seekerspider|siclab|skygrid|sqlmap|sucker|turnit|vikspider|winhttp|xxxyy|youda|zmeu|zune) bad_bot

    However I am not sure if the developer of this feature intentionally designed it like this or not.

    Let me know if the above helps you.

    Thank you

    Thread Starter Abland

    (@abland)

    @mbrsolution

    Thank you for the follow up. Oddly enough, on the GoDaddy sites the [USER AGENTS] rule was missing so there was no opening IfModule. I resaved the Firewall rules in your plugin which restored the [USER AGENTS] rule, then moved the closing IfModule as you indicated. All is working as normal.

    I found a duplicate </IfModule> under <IfModule mod_authz_core.c> on my site that also caused a 500 error.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    @abland, I am glad to know that you manged to solve your issue ??

    Closing down this thread.

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Server 500 on GoDaddy shared’ is closed to new replies.