Configure ubuntu on digitalocean so that URL of main domain without www in front can work [closed]

I have a Ubuntu 20.04.3 LTS virtual machine running nginx/1.18.0 on DigitalOcean.

Currently, when I key in the URL, it works. However, when I key in the URL, I get the following error;

This site can’t be reached.’s server IP address could not be found.

I am not sure whether this is a DNS or nginx problem.

How can I configure the digitalocean Ubuntu VM such that the URL without the www in front works?

How to add digitalocean nameservers to premiumdns in namecheap

I bought PremiumDns from namecheap 10 hours ago. I added 3 name servers of DigitalOcean to the customDNS but after I enabled the premiumDns, I can’t see the nameservers again. how to fix that, how to add the name servers to the PremiumDns?

The error is DNS error. The site is working now after I added digitaloceans nameservers to custom dns in namecheap. 

The problem There is no custom dns option in the premiumdns of namecheap, and they told me to find another way to add the nameservers.

I’ve contacted namecheap, they told me to contact digitalocean to find an alternative to the custom dns, but they don’t reply.

Can’t access my website with domain name with DigitalOcean

I’m using DigitalOcean for my hosting services and I’ve several domain names on the same droplets. All these domain use Let’s Encrypt for SSL certificates.

What’s your DNS records ?

|--------|---------------------------|--------------------------------------------|---------------| | Type   | Hostname                  | Value                                      | TTL (seconds) |  |--------|---------------------------|--------------------------------------------|---------------| | NS     |               |                      | 1800          | | NS     |               |                      | 1800          | | NS     |               |                      | 1800          | | A      |               | 159.xx.xx.60.                              | 3600          | | A      |           | 159.xx.xx.60.                              | 3600          | | MX     |               |               | 14400         | | MX     |               |                     | 14400         | | CNAME  |      |                              | 43200         | | CNAME  |       |                              | 43200         | | CNAME  | | | 43200         | | CNAME  | | | 43200         | | CNAME  |        |              | 43200         | |--------|---------------------------|--------------------------------------------|---------------| 
  • MX = allow the use of the GoDaddy mailbox (email like

  • CNAME = allow the use of SendGrid.

So what’s my problem?

If I type in the browser:

  •, I have a 404 error saying Apache/2.4.29 (Ubuntu) Server at Port 80.

  •, all is working and it redirects to the HTTPS version.

  •, all is working and it redirects to the HTTPS version.

  •, all is working.

So the problem is only with

Did you try ping function?

Yes. I ping with and and the both gave me the same IP address (my IP address).

What about traceroute ?

Again, it gave me the same for both and It pointed to my server.

What about my .conf files?

Here the file:

<VirtualHost *:80>     ServerAdmin     ServerName     ServerAlias     DocumentRoot /var/www/     ErrorLog $  {APACHE_LOG_DIR}/error.log     CustomLog $  {APACHE_LOG_DIR}/access.log combined RewriteEngine on RewriteCond %{SERVER_NAME} [OR] RewriteCond %{SERVER_NAME} RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] </VirtualHost> 

Here the file:

<IfModule mod_ssl.c> <VirtualHost *:443>         ServerAdmin         ServerName         ServerAlias         DocumentRoot /var/www/         ErrorLog $  {APACHE_LOG_DIR}/error.log         CustomLog $  {APACHE_LOG_DIR}/access.log combined Include /etc/letsencrypt/options-ssl-apache.conf SSLCertificateFile /etc/letsencrypt/live/ SSLCertificateKeyFile /etc/letsencrypt/live/ </VirtualHost> </IfModule> 

Can anyone help me with this ?

Thanks for any help.

Install Windows in DigitalOcean Droplet for $5

I will install Windows Server on your VPS Digital Ocean Droplet we can do via Team viewer(better for your security) requirement Your Account Password Digital Ocean(you can change your password after work) I will install Windows server on your Digital Ocean DropletI will upgrade you Ubuntu Droplet into Windows and you can enjoy windowsAdditional Features: I will make the VPS/Droplet ready-to-use by: Jarvee Installing OpenOffice chrome firefox keepass 2 TeamViewer 14 RealVNC 7-Zip WinRAR

by: owravs
Created: —
Category: VPS
Viewed: 223

Problema com static files em deploy de projeto Django no DigitalOcean

Fiz deploy de um projeto Python e Django no Digitalocean, porém estou com problemas com static files

Dentro do meu projeto, na pasta static ao digitar o comando pwd para ver o caminho completo do arquivo, tenho o seguinte.


Em eu tenho:

STATIC_URL = '/static/'  STATIC_ROOT = '/root/getcode/notafiscal/getcode/static/'  STATICFILES_DIRS = [     os.path.join(APP_ROOT, 'static'), ] 

e dentro de /etc/nginx/sites-available/getcode tenho o seguinte:

server {     listen 80;     server_name meu_endereco_ip;      location = /favicon.ico { access_log off; log_not_found off; }     location /static/ {         alias /root/getcode/notafiscal/getcode/static;     }      location / {         include proxy_params;         proxy_pass http://unix:/run/gunicorn.sock;     } } 

Porém, ao acessar o endereço IP, meu site está todo desconfigurado, como se não tivesse “lido” a pasta static.

Como resolver?

R script gets stuck on DigitalOcean

I posted the question on stackoverflow but maybe it is more appropriate here:

Basically I have node application that is invoking R script. At some point it gets stuck and there are no errors. Looked into /var/log/syslog and see no out of memory errors. Looks as if something times out, but I would expect it being logged somewhere at least.

Unable to access resume device (/dev/volgroup00/logvol01) after CentOS custom image import DigitalOcean

I’m trying to import an existing CentOS VM from a VMware environment to run on Digitalocean vis their custom images option. I’m able to successfully run the VMDK in both VMware Workstation and VirtualBox. I’ve tried using the VMDK itself, and cloning the VMDK from VirtualBox to a VDI format, and uploading these to DigitalOcean and restoring. The restoration succeeds, but during boot, the below error occurs.:

root (hd0,0)  Filesystem type is ext2fs, partition type 0x83 kernel /vmlinuz- ro root=/dev/VolGroup00/LogVol00 rhgb quiet    [Linux-bzImage, setup=0x1e00, size=0x1d6b1c] initrd /initrd-2.6.18-164.11.1.e15.img    [Linux-initrd @ 0x37cab000, 0x344acb bytes]  Memory for crash kernel (0x0 to 0x0) notwithin permissible range WARNING calibrate_APIC_clock: the APIC timer calibration may be wrong. PCI: PIIX3: Enabling Passive Release on 000:00:01.0 Red Hat nash version starting   Reading all physical volumes.  This may take a while...   Volume group "VolGroup00" not found Unable to access resume device (/dev/VolGroup/LogVol01) mount: could not find filesystem '/dev/root' setuproot: moving /dev failed: No such file or directory setuproot: error mounting /proc: No suck file or directory setuproot: error mounting /sys: No suck file or directory switchroot: mount failed: No such file or directory Kernel panic - not syncing: Attempt to kill init!  Kernel alive kernel direct mapping tables up to 120000000 @ 10000-16000 

The only changes the VM went through between working on a desktop hypervisor and booting in DigitalOcean was the compressing of the VMDK/VDI file to gzip to make the upload more efficient. Would this be the cause, or is it more likely that the infrastructure differences between a desktop hypervisor and DigitalOcean’s infrastructure was enough to shake-up the volume names?

Any suggestions would be much appreciated.