Verify domains

Now that you have added your domains, we need to validate them and procure SSL certificates.

Follow the instructions below, and once completed, click the Verify button for each domain added in the list.

List of hostnames in WebSonic.io dashboard

Automatic SSL certificate procurement We use Let’s Encrypt to procure and renew certificates for your domains automatically. For this validation to always work, you will need to proxy certain validation requests to our certificate bot as explained below.

Proxy all HTTP requests matching prefix /.well-known/acme-challenge/ to certs.wsonic.net

Example configurations

HAProxy
Ngnix
Apache
HAProxy
resolvers mydns
nameserver dns 8.8.8.8:53
frontend www-http
acl letsencrypt-acl path_beg /.well-known/acme-challenge/
redirect scheme https code 301 if !letsencrypt-acl
use_backend letsencrypt-backend if letsencrypt-acl
backend letsencrypt-backend
mode http
server letsencrypt certs.wsonic.net:80 resolvers mydns
Ngnix
server {
location /.well-known/acme-challenge/ {
proxy_buffering off;
proxy_redirect off;
resolver 8.8.8.8;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header HOST $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://certs.wsonic.net;
proxy_pass_request_headers on;
}
}
Apache
# Notes:
# 1. Make sure mod_proxy, mod_proxy_http modules are enabled for apache.
# 2. Use the following code outside the virtual host http config.
# Global Setting for multiple sites
<IfModule mod_proxy.c>
ProxyRequests Off
ProxyPass /.well-known/acme-challenge/ http://certs.wsonic.net/.well-known/acme-challenge/ timeout=10
ProxyPassReverse /.well-known/acme-challenge/ http://certs.wsonic.net/.well-known/acme-challenge/ timeout=10
</IfModule>
or
# For Single virtual host config
<VirtualHost *:8080>
...
ProxyPass /.well-known/acme-challenge/ http://certs.wsonic.net/.well-known/acme-challenge/ timeout=10
</VirtualHost>

Congratulations 🙌 Now that you have added and verified your domain(s), let's learn how to create a configuration in WebSonic.io.