Skip to content

Instantly share code, notes, and snippets.

@tgeek77
Created January 5, 2020 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tgeek77/5e5bd3d67d7724c026db41206b078840 to your computer and use it in GitHub Desktop.
Save tgeek77/5e5bd3d67d7724c026db41206b078840 to your computer and use it in GitHub Desktop.
OpenBSD httpd.conf for 3 onion services
## Template commented out at the beginning
#server "www.example.com" {
# listen on * port 80
# root "/htdocs/www.example.com"
#}
#
#server "example.com" {
# listen on * port 80
# block return 301 "http://www.example.com$REQUEST_URI"
#}
#
## Include additional MIME types
#types {
# include "/usr/share/misc/mime.types"
#}
## Site 1
server "tpsh5cb4zl73pwymkkuopl4roibk4envf6k3ybdcdzuhuztrytsnxxqd.onion" {
listen on * port 8080
root "/htdocs/tpsh5cb4zl73pwymkkuopl4roibk4envf6k3ybdcdzuhuztrytsnxxqd.onion"
}
# Include additional MIME types
types {
include "/usr/share/misc/mime.types"
}
## Site 2
server "ueaireabdst7uqupz5dlrt5vhltgid3wyz4esgwd7buug7nc2absawyd.onion" {
listen on * port 8081
root "/htdocs/ueaireabdst7uqupz5dlrt5vhltgid3wyz4esgwd7buug7nc2absawyd.onion"
}
## Site 3
server "r6udfh5el5bigkpnh7twtsx3j6w6cxmyexlaa23vacqugq7jo6hxlryd.onion" {
listen on * port 8082
root "/htdocs/r6udfh5el5bigkpnh7twtsx3j6w6cxmyexlaa23vacqugq7jo6hxlryd.onion"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment