My domain is:yppgi.org
I ran this command: wget http://192.168.99.101/ -O -
It produced this output: ```pre
Connecting to 192.168.99.101:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://192.168.99.101/ [following]
--2021-03-18 07:13:19-- https://192.168.99.101/
Connecting to 192.168.99.101:443... connected.
OpenSSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number
Unable to establish SSL connection
My web server is (include version): nginx version: nginx/1.14.0 (Ubuntu) and Apache/2.4.41 (Ubuntu)
The operating system my web server runs on is (include version): UBUNTU 18.0.4 LTS
My hosting provider, if applicable, is: none
I can login to a root shell on my machine (yes or no, or I don't know): yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no
The version of my client is (e.g. output of `certbot --version` or `certbot-auto --version` if you're using Certbot): certbot 0.31.0
I don't really know what happened to my website. It's been running for more than 7 months. Nothing configured whatsoever since, then suddenly my website stopped working. I can't open my website. It says " This site can’t provide a secure connection".
since it's about secure connection, I thought that it might be the SSL. I tried to restart my apache service webserver and nginx as well. but it does nothing.
All 443 ports on both apache and nginx are opened. the services are allowed too on UFW. FULL APACHE and FULL NGINX.
Here's my virtual host config on apache:
```pre <VirtualHost *:443>
ServerName YPPGI.org
ServerAlias www.YPPGI.org
ServerAdmin webmaster@YPPGI.org
DocumentRoot /var/www/YPPGI
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SetEnvIf X-Forwarded-Proto "https" HTTPS=on
</VirtualHost>
<VirtualHost *:80>
ServerName YPPGI.org
ServerAlias www.YPPGI.org
ServerAdmin webmaster@YPPGI.org
DocumentRoot /var/www/YPPGI
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SetEnvIf X-Forwarded-Proto "https" HTTPS=on
</VirtualHost> ```
And this is for NGINX:
```pre
server {
listen 443 ssl;
ssl on;
ssl_certificate /etc/letsencrypt/live/yppgi.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/yppgi.org/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / {
proxy_pass http://192.168.99.101;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_redirect off;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Ssl $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
server {
listen 80;
server_name yppgi.org www.yppgi.org;
return 310 https://$host$request_uri;
}