Advertisement
batlaizan

saboua.xyz httpd.conf's

Mar 1st, 2025 (edited)
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | Software | 0 0
  1. ```
  2. # cat /etc/httpd.conf
  3. server "*" {
  4. listen on * port 80
  5. location "/.well-known/acme-challenge/*" {
  6. root "/acme"
  7. request strip 2
  8. }
  9. location * {
  10. block return 302 "https://$HTTP_HOST$REQUEST_URI"
  11. }
  12. }
  13. include "/etc/httpd.saboua.xyz"
  14. #include "/etc/httpd.indra.net"
  15.  
  16. types {
  17. include "/usr/share/misc/mime.types"
  18. }
  19. ```
  20. ```
  21. # cat /etc/httpd.saboua.xyz
  22. default type "text"/"plain; charset=utf-8"
  23. types {
  24.         include "/usr/share/misc/mime.types"
  25.         "text"/"plain; charset=utf-8" txt conf pl sh diff patch md "log"
  26. }
  27. # types { text/plain;charset=utf-8 txt }
  28.  
  29. server "got.saboua.xyz" {
  30.         listen on * port 80
  31.         listen on * tls port 443
  32.         root "/htdocs/gotwebd"
  33.         hsts
  34.         tls {
  35.                 certificate "/etc/ssl/saboua.xyz.fullchain.pem"
  36.                 key "/etc/ssl/private/saboua.xyz.key"
  37.         }
  38.         location "/.well-known/acme-challenge/*" {
  39.                 root "/acme"
  40.                 request strip 2
  41.         }
  42.         location "/" {
  43.                 fastcgi socket "/run/gotweb.sock"
  44.         }
  45. }
  46.  
  47. server "www.saboua.xyz" {
  48.         listen on * port 80
  49.         listen on * tls port 443
  50.         root "/htdocs/saboua.xyz"
  51.         hsts
  52.         tls {
  53.                 certificate "/etc/ssl/saboua.xyz.fullchain.pem"
  54.                 key "/etc/ssl/private/saboua.xyz.key"
  55.         }
  56.         location "/.well-known/acme-challenge/*" {
  57.                 root "/acme"
  58.                 request strip 2
  59.         }
  60.         location "/en" { block return 301 "/index.html" }
  61.         location "/fr" { block return 301 "/index.fr.html" }
  62.         location "/bit/*" { directory auto index }
  63.         location "/doc/*" { directory auto index }
  64.         location "/pix/*" { directory auto index }
  65.         location "/hax/apk/*" { directory auto index }
  66.         include "/etc/httpd.saboua.xyz.redir"
  67. }
  68.  
  69. server "saboua.xyz" {
  70.         listen on * port 80
  71.         listen on * tls port 443
  72.         tls {
  73.                 certificate "/etc/ssl/saboua.xyz.fullchain.pem"
  74.                 key "/etc/ssl/private/saboua.xyz.key"
  75.         }
  76.         location "/.well-known/acme-challenge/*" {
  77.                 root "/acme"
  78.                 request strip 2
  79.         }
  80.         block return 301 "$REQUEST_SCHEME://www.saboua.xyz$REQUEST_URI"
  81. }
  82. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement