Browse Source

More examples, include FastCGI for php and cgi-bin and logging.

OPENBSD_5_6
reyk 10 years ago
parent
commit
12cf332beb
1 changed files with 17 additions and 1 deletions
  1. +17
    -1
      src/etc/examples/httpd.conf

+ 17
- 1
src/etc/examples/httpd.conf View File

@ -1,4 +1,4 @@
# $OpenBSD: httpd.conf,v 1.4 2014/07/30 10:05:14 reyk Exp $
# $OpenBSD: httpd.conf,v 1.5 2014/08/03 11:28:58 reyk Exp $
# Macros
ext_addr="egress"
@ -9,8 +9,24 @@ ext_addr="egress"
# Servers
server "default" {
listen on $ext_addr port 80
# Logging is enabled by default, but it can be turned off per server
#no log
location "/pub/*" {
directory auto index
log combined
}
location "*.php" {
fastcgi socket "/run/php-fpm.sock"
}
location "/cgi-bin/*" {
fastcgi
# The /cgi-bin directory is outside of the document root
root "/"
}
}


Loading…
Cancel
Save