To address the “iframe refused to connect” issue on an Nginx server, you need to configure Nginx to allow embedding your site within an iframe. This involves setting appropriate HTTP headers in your Nginx configuration. Use below code in .conf Ngnix file Now restart NGNIX Still facing Issues ? Contact me for paid support​ […]
Year: 2024
How to fix “iframe refused to connect” issue on an Nginx server?
To address the “iframe refused to connect” issue on an Nginx server, you need to configure Nginx to allow embedding your site within an iframe. This involves setting appropriate HTTP headers in your Nginx configuration. Use below code in .conf Ngnix file location / { proxy_set_header X-Forwarded-Proto https; proxy_hide_header X-Frame-Options; add_header X-Frame-Options “ALLOWALL”; } Now […]
How to install SSL or certbot Let’s Encrypt manually for any website hosted in cloudpanel?
To install SSL manually or using Certbot Let’s Encrypt for a website hosted in CloudPanel, you can follow these general steps: Update your package list: sudo apt update sudo apt install certbot python3-certbot-nginx sudo certbot –nginx -d your_domain.com -d www.your_domain.com Verify Certificate Renewal (Optional) sudo certbot renew –dry-run Test your SSL https://www.sslshopper.com/ssl-checker.html Open Terminal certbot […]
How to deploy Django or flask or any Python application on Cloudpanel using Gunicorn?
In this blog, I am going to show you how to simply setup Django application on Cloudpanel 2 with Gunicorn and nginx This tutorial is aimed at the Django user who wants to set up a production web server. It takes you through the steps required to set up Django so that it works nicely […]