[SOLVED]How to remove force https

Hi all!

  • web server: Apache Httpd
  • hosting provider: Amazon EC2 CentOS.

After some errors, I had to completely remove "cert" from my server. The problem is that the server is still forcing "https".

What I've done:

  • I've checked: I have no ".htacess" file.

  • I have open a private browser window to check that it wasn't a problem of cache.

  • I've checked any redirect in the conf files:

    [ec2-user@ip-172-31-6-54 ~]$  grep -Eri 'rewrite|redirect' /etc/httpd      
     /etc/httpd/conf.d/moodle.conf:RewriteEngine on
     /etc/httpd/conf.d/moodle.conf:RewriteCond %{SERVER_NAME} =MYSITE.com [OR]
     /etc/httpd/conf.d/moodle.conf:RewriteCond %{SERVER_NAME} =www.MYSITE.com
     /etc/httpd/conf.modules.d/00-base.conf:LoadModule rewrite_module modules/mod_rewrite.so
     /etc/httpd/conf/httpd.conf.rpmsave:    # Redirect: Allows you to tell clients about document
     s that used to
     /etc/httpd/conf/httpd.conf.rpmsave:    # Redirect permanent /foo http://www.example.com/bar
     /etc/httpd/conf/httpd.conf.rpmsave:# 1) plain text 2) local redirects 3) external redirects
     /etc/httpd/conf/httpd.conf:    # Redirect: Allows you to tell clients about documents that u
     sed to
     /etc/httpd/conf/httpd.conf:    # Redirect permanent /foo http://www.example.com/bar
     /etc/httpd/conf/httpd.conf:# 1) plain text 2) local redirects 3) external redirects
    

Thank you!

SOLVED:
In fact, I add to delete the 3 lines (they were added by Certbot) that my search note above has returned:

/etc/httpd/conf.d/moodle.conf:RewriteEngine on
/etc/httpd/conf.d/moodle.conf:RewriteCond %{SERVER_NAME} =MYSITE.com [OR]
/etc/httpd/conf.d/moodle.conf:RewriteCond %{SERVER_NAME} =www.MYSITE.com
2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.