Hi guys,

I have a small problem with httpd and Wordpress.
When I go to https://myipaddress I get "Access denied". If I go to
https://myipaddress/wordpress, everything works as expected.
I have tried to change the appropriate line in the httpd.conf to:
root "/htdocs/wordpress". In that case the webpage is loaded, but in the
"broken" form.

My current httpd.conf:

# $OpenBSD: httpd.conf,v 1.16 2016/09/17 20:05:59 tj Exp $
# Macros
ext_addr="*"
# Global Options
# prefork 3
# Servers
# A minimal default server
server "default" {
        listen on $ext_addr port 80
    listen on $ext_addr tls port 443 block return 301 "https://
$SERVER_NAME$REQUEST_URI"
    tls {
        key "/etc/ssl/private/server.key"
        certificate "/etc/ssl/server.crt"
    }
    directory {
        no auto index, index "index.php"
    }
    location "*.php" {
        fastcgi socket "/run/php-fpm.sock"
    }
    root "/htdocs"
}
# Include MIME types instead of the built-in ones
types {
        include "/usr/share/misc/mime.types"
}


Any ideas where I am making a mistake?

Thank you

Jan

Reply via email to