A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
Write for DigitalOcean
You get paid, we donate to tech non-profits.
Find and meet other developers in your city.
Contribute to Open Source
I want to redirect from http://domain.com to http://domain.com/
Common answers like:
rewrite ^([^.]*[^/])$ $1/ permanent
don’t solve the problem.
Add comments here to get more clarity or context around a question. To answer a question, use the “Answer” field below.
Can you explain why or what you want to achieve as there is no value and/or reason you would need to do this.
This one came from the SEO department. And if you’ll make curl -I to Amazon, Google, Facebook sites without trailing slash, you’ll see that they all are redirected to a trailing slash.
You can type !ref in this text area to quickly search our full set of tutorials, documentation &
marketplace offerings and insert the link!
How can I have a list of the users existing on my nginx installation, beside the root one?
What can I do about it?
I have a droplet and a website. I can upload my html files to my droplet and see them correctly.
But I just want to see my web pages like this;
and not like this;
How can i do that? Is that possible with nginx settings?
I think I have configure the SSL and nginx correcty by using the guides.
However, the Http request scheme and http scheme is not set to htpps in the system information provided in the admin area.
As a result, all the images uploaded to the site got mixed content error. the images are actually available from an https URL when I change the http to https in the browser.
Mixed Content: The page at 'https://example.com/' was loaded over HTTPS, but requested an insecure image 'http://example.com/content/images/thumbs/5e229c1241809003f1abbd1c.png'. This content should also be served over HTTPS.
I'm guessing the nginx server has some configuration file messing this up somewhere. how do I figure it out and fix this? In the appsetting.json file, I set "UseForwardedHeaders": true but it didn't fix the prob.
I have tried to solve this issues for about 4 days now. Appreciate if you can show me how to fix this.