Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```
- # cat /etc/httpd.conf
- server "*" {
- listen on * port 80
- location "/.well-known/acme-challenge/*" {
- root "/acme"
- request strip 2
- }
- location * {
- block return 302 "https://$HTTP_HOST$REQUEST_URI"
- }
- }
- include "/etc/httpd.saboua.xyz"
- #include "/etc/httpd.indra.net"
- types {
- include "/usr/share/misc/mime.types"
- }
- ```
- ```
- # cat /etc/httpd.saboua.xyz
- default type "text"/"plain; charset=utf-8"
- types {
- include "/usr/share/misc/mime.types"
- "text"/"plain; charset=utf-8" txt conf pl sh diff patch md "log"
- }
- # types { text/plain;charset=utf-8 txt }
- server "got.saboua.xyz" {
- listen on * port 80
- listen on * tls port 443
- root "/htdocs/gotwebd"
- hsts
- tls {
- certificate "/etc/ssl/saboua.xyz.fullchain.pem"
- key "/etc/ssl/private/saboua.xyz.key"
- }
- location "/.well-known/acme-challenge/*" {
- root "/acme"
- request strip 2
- }
- location "/" {
- fastcgi socket "/run/gotweb.sock"
- }
- }
- server "www.saboua.xyz" {
- listen on * port 80
- listen on * tls port 443
- root "/htdocs/saboua.xyz"
- hsts
- tls {
- certificate "/etc/ssl/saboua.xyz.fullchain.pem"
- key "/etc/ssl/private/saboua.xyz.key"
- }
- location "/.well-known/acme-challenge/*" {
- root "/acme"
- request strip 2
- }
- location "/en" { block return 301 "/index.html" }
- location "/fr" { block return 301 "/index.fr.html" }
- location "/bit/*" { directory auto index }
- location "/doc/*" { directory auto index }
- location "/pix/*" { directory auto index }
- location "/hax/apk/*" { directory auto index }
- include "/etc/httpd.saboua.xyz.redir"
- }
- server "saboua.xyz" {
- listen on * port 80
- listen on * tls port 443
- tls {
- certificate "/etc/ssl/saboua.xyz.fullchain.pem"
- key "/etc/ssl/private/saboua.xyz.key"
- }
- location "/.well-known/acme-challenge/*" {
- root "/acme"
- request strip 2
- }
- block return 301 "$REQUEST_SCHEME://www.saboua.xyz$REQUEST_URI"
- }
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement