Vladko Mozec
Vladko Mozec

Reputation: 3

openbsd httpd php execution

I just installed openbsd 56 and want to configure the default Reyk Floeter's httpd server.

Here are the simple steps I followed:

And it worked well. Everything is fine, the php script is well executed and the browser displays the page successfully.

The problem is that I query 192.168.xx.xx/index.php, but if I query just the IP (192.168.xx.xx/), it won't execute the php script and propose to download it instead.

Is there any reason or solution for this ?

FYI, the php-fpm config is the default one. And the httpd config is very basic:

ext_addr="egress"
server "default" {
        listen on $ext_addr port 80
        location "*.php" {
                fastcgi socket "/run/php-fpm.sock"
        }
        directory { no auto index, index "index.php" }
}

Thanks for your help !

Upvotes: 0

Views: 2070

Answers (1)

Quinn Evans
Quinn Evans

Reputation: 11

Previously, serving a FastCGI page as the default index was unsupported. This is fixed in -current.

Upvotes: 1

Related Questions