Question

Few Queries (Wordpress/Nginx/SSL related)

Hi,

<<<SORRY FOR BAD ENGLISH>>>

I have few queries (If you dont mind)

1.) My WordPress home page is pointing to a domain name (ex abc.com). But all internal such as page/assets/images point to ip address. (like 1.1.1.1/assets/css/abc.css). 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 (abc.com) 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

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.