httpd doesn't serve pages on my Dec24 snapshot system (hasn't ever,
actually).

I am missing something really obvious. httpd exits logging thusly:

Dec 27 10:05:07 $hostname httpd[28709]: fatal: send server: Can't assign
requested address

rc.conf.local and httpd.conf files are below. httpd.conf sets
$ext_addr to "egress", but I do not know where egress is defined, or if
I should replace it. Replacing it with the address bound to the
(single) interface did not change anything.

The box uses dhcp but has a reservation: address is always the
same. 
-- 

Edward Ahlsen-Girard
Ft Walton Beach, FL

ntpd_flags=             # enabled during install
httpd_flags=""
xdm_flags=""
lpd_flags=""
smtpd_flags=""

# $OpenBSD: httpd.conf,v 1.11 2014/08/25 14:27:54 reyk Exp $

#
# Macros
#
ext_addr="egress"

#
# Global Options
#
# prefork 3

#
# Servers
#

# A minimal default server
server "default" {
        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 #no log

        location "/pub/*" {
                directory auto index
                log style combined
        }

        location "*.php" {
                fastcgi socket "/run/php-fpm.sock"
        }

        location "/cgi-bin/*" {
                fastcgi

                # The /cgi-bin directory is outside of the document root
                root "/"
        }

        root "/htdocs/www.example.com"
}

# An HTTPS server using SSL/TLS
#server "secure.example.com" {
#       listen on 127.0.0.1 ssl port 443

        # Define server-specific log files relative to /logs
#       log { access "secure-access.log", error "secure-error.log" }

        # Increase connection limits to extend the lifetime
#       connection { max requests 500, timeout 3600 }

#       root "/htdocs/secure.example.com"
#}

# Another server on a different internal IPv4 address
server "intranet.example.com" {
        listen on 10.0.0.1 port 80
        directory { auto index, index "default.htm" }
        root "/htdocs/internet.example.com"
}

# An IPv6-based server on a non-standard port
server "ipv6.example.com" {
        listen on 2001:db8::53f6:3eab port 81
        root "/htdocs/ipv6.example.com"
}

# Include MIME types instead of the built-in ones
types {
        include "/usr/share/misc/mime.types"
}

Reply via email to