Advertisement
Guest User

httpd.conf

a guest
Apr 14th, 2024
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. web_ip="xxx.xxx.xxx.xxx"
  2. mail_ip="xxx.xxx.xxx.xxx"
  3.  
  4. server "domain.com" {
  5. listen on $web_ip tls port 443
  6. tls {
  7. certificate "/etc/ssl/domain.com.fullchain.pem"
  8. key "/etc/ssl/private/domain.com.key"
  9. }
  10. location "/.well-known/acme-challenge/*" {
  11. root "/acme"
  12. request strip 2
  13. }
  14. root "/htdocs/domain.com"
  15. }
  16.  
  17. server "mail.domain.com" {
  18. listen on $mail_ip port 80
  19. location "/.well-known/acme-challenge/*" {
  20. root "/acme"
  21. request strip 2
  22. }
  23. location * {
  24. block return 302 "https://$HTTP_HOST$REQUEST_URI"
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement