Question

Https redirect doesn't work?

the site in question is: gengoka.com

I set up a marketplace Wordpress installation with let’s encrypt.

If I directly type in gengoka.com into my browser, it doesn’t connect and I get a timeout error.

If I type **https://**gengoka.com into my browser there are no issues.

Also, if I go to the non secure **http://**gengoka.com version of the site, it also gives me the timeout error.

I tried using the Really Simple SSL plugin in Wordpress for a 301 redirect, but that hasn’t helped. I also tried a redirect in the apache conf file for sites enabled, and that didn’t work either (though not 100% if I did it correctly).

What should I try next?

Show comments

Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey, @raimanau,

Could you post the content of your Apache/Nginx config:

/etc/apache2/sites-enabled/anything-in-here OR /etc/nginx/sites-enabled/anything-in-here

Also, could you tell me how did you set-up your domain? Did you change the nameservers to match DigitalOcean ones? You should have the following records:

Thanks, Dennis

Hey @raimanau,

Hmm, are you sure that your A record is pointing to your current IP? If that is the case, maybe delete and recreate the droplet again? As far as I can see, you haven’t started development yet, so this may be a good chance for us to experiment as much as possible.

Best, Dennis

Had same issue, spent lot of time looking for fix, installed plugins, etc.

Turned out official guide suggested optionally using ufw delete allow 80/tcp which was the cause of issue.

So i just had to ufw allow 80/tcp to make http version of my domain work again, which then automatically gets redirected to https, as supposed.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.