• Resolved M Designs

    (@mcmorrisdesigns)


    Hello,

    I have recently moved our WordPress installation over to a Google Cloud Platform VM instance. When I click optimize firewall it detects “Apache + mod_php” configuration, but when I click continue it results in the entire website returning an “Internal Server Error” until I remove the Wordfence entries from the .htaccess file.

    I found some similar issues specific to Google Cloud Platform and tried the suggestions in those tickets, such as replacing:

    <Directory /var/www/html>
      Options -Indexes
      AllowOverride FileInfo
    </Directory>

    with

    <Directory /var/www/html>
      Options -Indexes
      AllowOverride All
    </Directory>

    in the /etc/apache2/sites-available/wordpress.conf file, but so far I have not been able to get it working.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @mcmorrisdesigns, thanks for reaching out.

    When using Google VM, you are correct based on previous customer configurations to make sure that the AllowOverride is set for the directory so the WAF has the access it needs.

    As this hasn’t worked, you should also check the config files in /etc/apache2/sites-available/. If one of those has its own AllowOverride set to a different value for /var/www/html, it would need to be changed in that file instead.

    If you need to change AllowOverride whether it’s in the conf file or in another config file, restart apache afterwards, then you should be able to head back over to the Wordfence > Firewall page and click Optimize the Firewall. In the WAF wizard, select Apache + mod_php and follow the steps, this should automatically optimize your WAF.

    Let me know if your issue persists.

    Peter.

    Thread Starter M Designs

    (@mcmorrisdesigns)

    Hi Peter,

    Thanks for the fast response. I have made the change in the sites-enabled folder as well and restarted Apache and it now appears to be working correctly!

    Thanks agin!

    • This reply was modified 4 years, 8 months ago by M Designs.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Google Cloud Platform – Optimizing firewall makes site inaccessible’ is closed to new replies.