Questions

Ask a development question or answer others’ in our diverse Q&A section.
For information about the DigitalOcean product, check out our Product Docs.

3637 Questions
Ask a question
  • Question

    ERR_CONNECTION_REFUSED after changer domain IP

    I changer my domain that was pointing to one droplet to another but im now getting ERRCONNECTIONREFUSED since more than an hour, if i go directly to the ip address it work: http://139.59.225.139/ my nginx file is simp...
    1 By crashbdx Nginx
  • Question

    Webserver Nginx download the index file when I want to go to the first page

    this is my Nginx config file ``` ############# DOMAIN domainname.COM #################### server { servername domainname.com; rewrite ^(.*) http://www.domainname.com$1 permanent; return 301 $schem...
    0 By redscience Nginx WordPress
  • Question

    Configuring Laravel-websockets with ssl on nginx

    I have been trying to connect websockets with laravel on nginx with ssl but i have been getting this error. It works fine on my local computer. I have been getting this error in the console: app.js:2 WebSocket conne...
    0 By Arpi7 Laravel Nginx DigitalOcean
  • Question

    Can't get unicorn to run - Ubuntu 20.04 Ruby on rails

    I'm trying to get a simple ruby on rails app running. I created a droplet with Ununtu 20.04 Trying to use NGINX/UNICORN getting a 403/nginx/1.18.0 (Ubuntu) error I set up /config/unicorn.rb Permissions seem to be rig...
    1 By cgmendla Nginx
  • Question

    NGINX not listening to port 5000

    Hi, I am currently using AWS EC2 (Ubuntu) instance to run a bot, I've already set up a Letsencrypt SSL using Certbot NGINX, however it fails to listen to the 'port:5000'. The webpage loads with the SSL, however the i...
    1 By ncode Ubuntu 20.04 Nginx Go
  • Question

    NGINX not pointing to localhost

    I can access my server running in a Docker container w/ port 0.0.0.0:8080 and 0.0.0.0:5432 (for accessing remote Postgres server on ElephantSQL). I had this running @ one point behind an NGINX server in DigitalOcean ...
    1 By Drunner4 Nginx Docker
  • Question

    Wordpress website shows: 403 Forbidden on Ubuntu Nginx

    Hello I have a WordPress website running under Ubuntu 18 and Nginx and I get the following error "403 Forbidden" When I check the error log I can see these problems pretty much every single time "106 directory index o...
    1 By boriszegarac Ubuntu 18.04 Nginx WordPress
  • Question

    Nginx showing homepage on all URLs

    I'm trying to deploy this PHP app that was developed by a third-party web developer. I have no idea how exactly this was written so the nginx configuration file I'm using isn't working. When I access the root URL (www...
    2 By hasibuzzamantonmoy Nginx PHP
  • Question

    PHP-FPM and NGINX with Wordpress redirect (sometimes) to weird url and blank page

    I followed many tutorials here and thanks to the community I was able to set up a LEMP stack, running on Debian 10 with Nginx 1.18, php 7.4.9, WP5.5.1 Multisite. Everything is working very well but one thing, which is...
    1 By pietroOP WordPress Nginx PHP
  • Question

    Dockerized django app not accessible via web

    I am following a tutorial on how to dockerize django with postgres, gunicorn and nginx on an ubuntu 20.04 system. (see as reference: https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/ ) Un...
    1 By mikewinkel Django Nginx Docker
  • Question

    Should I use nginx or route53 for redirect?

    I have a question what should I use for subdomain redirection I want to create webmail.mywebsite.com and then redirect it to gmail.com I try to do thet with nginx server{ server_name webmail.mywebsite.com 301 https:...
    1 By cedoburic Nginx
  • Question

    Cannot POST to /api location using nginx

    Hey, everyone! I have a site running on the 443 port using create-react-app and Express for the backend. I have the following /etc/nginx/sites-enabled/default file (Using validdomain.com to protect the privacy of my ...
    1 By ricsasa201 Node.js React Nginx
  • Question

    media files returns 404 not found

    my nginx file looks like: ``` location = /favicon.ico { accesslog off; lognot_found off; } location /static/ { alias /home/me/projectdir/static/; } location /media/ { alias /home/me/projectdir/media/; } locati...
    Accepted Answer: Hi there @elprincipe, Do you see any errors in your Nginx error log? You can check that with the following command: command,bash sudo tail -100 /var/log/nginx/error.log It is quite possible that Nginx does not have t...
    1 By elprincipe Nginx Python PostgreSQL Django Python Frameworks Ubuntu 18.04 Databases
  • Question

    Nginx server block displaying wrong site on droplet

    I have 3 sites on one droplet. The first two work fine, but as I add a third following this guide (https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04) it d...
    2 By CanuckLuck Nginx
  • Question

    How to Redirect Droplet IP Access to Domain URL

    Hello everyone, I followed DO's tutorial (https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-18-04) along with all the pre-requisites which also include securing Nginx with C...
    2 By dhananjaygbhardwaj WordPress Nginx
  • Question

    Serving React frontend and Flask backend with Nginx reverse proxy

    I've been trying to set up a React frontend and a Flask backend using Nginx as a reverse proxy to differentiate the two. I have the flask backend running a Gunicorn server on localhost:5000, but I can't seem to get th...
    1 By wenzelstev Nginx React Python Frameworks API
  • Question

    SSL Error: How to use Nginx with Node.js App using Express and Socket.io

    I am runnning into an SSL error when setting up Nginx as a reverse proxy for a Node.js app. This app uses Express to serve static content and Socket.io to manage Websocket connections. The error occurs on the client ...
    1 By bicycle Node.js Nginx
  • Question

    Prevention of Host Header Attacks with Nginx

    I followed a tutorial on configuring Nginx to prevent host header attacks on Meduim (https://medium.com/@alex_kuznetsov/how-to-fix-django-error-invalid-http-host-with-nginx-d0183a1ca753). I placed the statement in the...
    Accepted Answer: Nevermind, figured it out after playing around with it and it seems work placed in the sites-enabled/mydomain file in the server section.
    1 By mspe Nginx
  • Question

    How to create _dmarc.mydomain.com subdomain

    Hello. I am attempting to set-up a subdomain on the domain droplet with the NGINX server on Ubuntu 20.04 to implement a DMARC record for my outgoing Gmail through a WordPress SMTP plugin with preconfigured SPF & DKIM ...
    Accepted Answer: Hi, It looks like you try to create new subdomain <^>_dmarc<^> for your domain. So, the message you get is 100% OK, domain name cannot contain underscore sign. If you want to create DMARC record, you need to add TXT r...
    2 By MALbISH Email Nginx Ubuntu 20.04 DigitalOcean
  • Question

    Domain pointed to vps, nginx is not pickign it up.

    I followed this tutorial: https://help.pebblehost.com/en/article/how-to-setup-an-image-hosting-webserver-using-sharex-18brwsw/ to set up a ShareX custom uploader using a vps. I have set up my Nginx files on my droplet...
    1 By 332006 Nginx