Linux_ubuntu_scripts/app.conf

19 lines
355 B
Plaintext
Raw Normal View History

2024-10-14 21:46:55 +00:00
server {
listen 80;
server_name example.org;
location / {
return 301 https://$host$request_uri;
}
2024-10-14 21:50:54 +00:00
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
2024-10-14 21:46:55 +00:00
}
server {
listen 443 ssl;
server_name example.org;
location / {
proxy_pass http://example.org; #for demo purposes
}
}