Question
Welcome to nginx! after droplet backup restore (emergency)
My client has paid ads and visitors coming to their site and they’re going crazy, so I’m a little frustrated here.
After restoring a droplet from when the site worked, I’m getting “Welcome to nginx!”
Following the instructions in this discussion:
https://www.digitalocean.com/community/questions/website-only-show-welcome-to-nginx
I’m getting a 403 error
Nothing in:
/var/log/nginx/error.log.1
/var/log/nginx/error.log
Inside /etc/nginx/sites-available/default (comments removed):
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/;
index index.html index.htm;
server_name localhost;
location / {
try_files $uri $uri/ =404;
}
location ~ /.well-known {
allow all;
}
}
— update as I’m troubleshooting —
I used this tutorial to set up my droplet with wordpress:
https://www.digitalocean.com/community/tutorials/how-to-migrate-wordpress-from-shared-hosting-to-a-cloud-server-with-zero-downtime
I didn’t install nginx, I installed Apache. I’m not sure why it was running.
I’ve stoped nginx and restarted apache but I’m getting an error:
/etc/init.d/apache2 restart
- Restarting web server apache2 [fail]
- The apache2 configtest failed. Output of config test was: AH00526: Syntax error on line 33 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file ’/etc/letsencrypt/live/www.signa.com/cert.pem’ does not exist or is empty Action ‘configtest’ failed. The Apache error log may have more information.
/etc/letsencrypt/live/www.signa.com/cert.pem
is not empty, there is a certificate inside I’ve just verified
Apache error logs (/var/log/apache2/error.log) only have logs from Yesterday, nothing from today
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.
×
Since nginx and isn’t your webserver and Apache is we need to see the apache config and the lines around line 33 to see if there are any syntax errors there.
default-ssl.conf:
File: /etc/apache2/httpd.conf
File:/etc/apache2/apache2.conf