|
@ -1,14 +1,27 @@ |
|
|
# $OpenBSD: httpd.conf,v 1.5 2014/08/03 11:28:58 reyk Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: httpd.conf,v 1.6 2014/08/03 11:51:40 reyk Exp $ |
|
|
|
|
|
|
|
|
|
|
|
# |
|
|
# Macros |
|
|
# Macros |
|
|
|
|
|
# |
|
|
ext_addr="egress" |
|
|
ext_addr="egress" |
|
|
|
|
|
|
|
|
|
|
|
# |
|
|
# Global Options |
|
|
# Global Options |
|
|
|
|
|
# |
|
|
# prefork 3 |
|
|
# prefork 3 |
|
|
|
|
|
|
|
|
|
|
|
# |
|
|
# Servers |
|
|
# Servers |
|
|
|
|
|
# |
|
|
|
|
|
|
|
|
|
|
|
# A minimal default server |
|
|
server "default" { |
|
|
server "default" { |
|
|
listen on $ext_addr port 80 |
|
|
listen on $ext_addr port 80 |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# A name-based "virtual" server on the same address |
|
|
|
|
|
server "www.example.com" { |
|
|
|
|
|
listen on $ext_addr port 80 |
|
|
|
|
|
|
|
|
# Logging is enabled by default, but it can be turned off per server |
|
|
# Logging is enabled by default, but it can be turned off per server |
|
|
#no log |
|
|
#no log |
|
@ -28,11 +41,7 @@ server "default" { |
|
|
# The /cgi-bin directory is outside of the document root |
|
|
# The /cgi-bin directory is outside of the document root |
|
|
root "/" |
|
|
root "/" |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# A name-based "virtual" server on the same address |
|
|
|
|
|
server "www.example.com" { |
|
|
|
|
|
listen on $ext_addr port 80 |
|
|
|
|
|
root "/htdocs/www.example.com" |
|
|
root "/htdocs/www.example.com" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|