Few Queries (Wordpress/Nginx/SSL related)



I have few queries (If you dont mind)

1.) My WordPress home page is pointing to a domain name (ex But all internal such as page/assets/images point to ip address. (like WHat could be the problem?

2.) how to redirect http traffic to HTTPS.

3.) WHich one is best varnish or redis cache for quick loading?

Thanks a lot Akki

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.

Accepted Answer

To answer your first two questions, make sure your server name in your Nginx configuration is set to your domain ( and not your IP address or _ as that is how Wordpress recognizes and creates URLs off of. Additionally you will want to look at a few articles on moving Wordpress as if you didn’t set Wordpress up as HTTPS and are trying to move it to HTTPS, it is quite difficult since Wordpress keeps many references to your site URL in the database. Going through the moving procedure may also fix the first issue. I’ve linked some references here:

As for caching, I would look at Wordpress and PHP caching before using an external service such as Redis and Varnish. I’ve linked to some below:

Obviously fix your issues with 1 and 2 before installing a caching system. Also make sure to snapshot/backup before doing any of this!

Have a good one!

Try DigitalOcean for free

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

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

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

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel