tech

reroute http traffic > nginx, Route53

sudo vim /etc/nginx/sites-enabled/default

server {
        listen 80 default_server;
        listen [::]:80 default_server;
        root /var/www/html;
        index index.html index.htm index.nginx-debian.html;
        
        server_name hensler.net www.hensler.net;
        return 301 https://bernhard.hensler.net$request_uri;
        
        location / {
                try_files $uri $uri/ =404;
        }
}
hensler.net.      A   ALIAS www.hensler.net
www.hensler.net.  A   ipaddress

Leave a Reply

Your email address will not be published. Required fields are marked *