Thread: OpenBsd server
View Single Post
  #4   (View Single Post)  
Old 15th July 2017
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 472
Default

Thanks, and yes, it will be a web server, sorry I didn't think to specify that.
---------- edited --------
thanks , using the -d option gave me enough information to find and fix the
lines as needed, it now does access the index.php .
------- edited -----------
This is what my httpd.conf is now:
Code:
# $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
directory {
    index "index.php"
	} 
	location "*.php" {
		fastcgi socket "/run/php-fpm.sock"
	}
}


types {
        text/css                css
        text/html               html htm
        text/txt                txt
        image/gif               gif
        image/jpeg              jpeg jpg
        image/png               png
        application/javascript  js
        application/xml         xml

}
It still is very minimal, but works, the index.php displays as expected.
Thanks again

Last edited by PapaParrot; 16th July 2017 at 02:20 AM.
Reply With Quote