qse/qse/cmd/http/httpd.conf

161 lines
4.7 KiB
ApacheConf

#
# this is a sample configuration file for qsehttpd.
#
# string to be used as a httpd name
name = "QSEHTTPD v1";
# none, unlimited, or positive number
max-nofile = none;
max-nproc = none;
################################################
# default server configuration
################################################
server-default {
# default ssl certificate file
#ssl-cert-file = "/etc/qse/cert.pem";
# default ssl private key file
#ssl-key-file = "/etc/qse/key.pem";
####################################################################
# document root
####################################################################
root = "/var/www";
realm = "default realm";
auth = "username:password";
index = "index.html",
"index.cgi";
# you can get some files exempted from authorization
# with auth-rule.
#auth-rule {
# suffix ".awk" = noauth;
# other = auth;
#}
cgi {
#name "t3.nph" = "nph";
#prefix "t3." = "nph";
suffix ".cgi";
suffix ".nph" = "nph";
suffix ".awk" = "cgi", "/usr/bin/qseawk -f";
# glob is not supported yet
# glob "x*.xxx";
}
mime {
@include "httpd-mime.conf";
}
####################################################################
# control access to directories
####################################################################
dir-access {
#prefix ".xxxx" = ok;
#suffix ".xxxx" = ok;
#name "xxxxx" = ok;
#other = noent;
}
####################################################################
# control access to normal files.
# cgi scripts are not control by these.
####################################################################
file-access {
#prefix "index.html." = ok;
suffix ".html" = ok;
suffix ".css" = ok;
suffix ".js" = ok;
suffix ".png" = ok;
suffix ".jpg" = ok;
#other = noent;
}
####################################################################
# directory listing includes this string in the <head> tag of the
# generated html page.
####################################################################
#dir-head = "<style type='text/css'>body { background-color:#d0e4fe; font-size: 0.9em; } div.header { font-weight: bold; margin-bottom: 5px; } div.footer { border-top: 1px solid #99AABB; text-align: right; } table { font-size: 0.9em; } td { white-space: nowrap; } td.size { text-align: right; }</style>";
####################################################################
# directory listing shows the httpd name in the footer. you can
# override it with dir-foot.
####################################################################
#dir-foot = "QSEHTTPD v1";
####################################################################
# the error page includes this string in the <head> tag of the
# generated html page.
####################################################################
#error-head = "<style type='text/css'>body { background-color:#d0e4fe; font-size: 0.9em; } div.header { font-weight: bold; margin-bottom: 5px; } div.footer { border-top: 1px solid #99AABB; text-align: right; }</style>";
####################################################################
# the error page shows the httpd name in the footer. you can
# override it with error-foot.
####################################################################
#error-foot = "QSEHTTPD v1";
}
server {
bind = "0.0.0.0:1999";
ssl = yes;
# you can create certificate/key files as shown below
# openssl genrsa -out key.pem
# openssl req -new -key key.pem -out cert.csr
# openssl req -new -x509 -key key.pem -out cert.pem -days 1095
ssl-cert-file = "/etc/qse/cert.pem";
ssl-key-file = "/etc/qse/key.pem";
host "*" {
# place other locations before /
#location "/help" {
#}
location "/" {
# uncomment the followng block to override the default.
#root = "/var/www";
# uncomment the followng block to override the default.
# if you want to disable authentication while the default
# enables it, don't put a value like 'realm;'
#realm = "default realm";
#auth = "username:password";
# uncomment the following block to override the default
#index = "index.cgi", "index.html";
# uncomment the following block to override the default
#cgi {
# suffix ".cgi";
# suffix ".awk" = "/usr/bin/qseawk -f";
#}
# uncomment the following block to override the default.
#mime {
# suffix ".htm" = "text/html";
# suffix ".html" = "text/html";
# suffix ".txt" = "text/html";
# suffix ".css" = "text/css";
# suffix ".xml" = "text/xml";
# suffix ".js" = "application/javascript";
# suffix ".jpg" = "image/jpeg";
# suffix ".png" = "image/png";
#}
}
}
# virtual hosts are not supported yet.
#host "www.google.com" {
# location "/" {
# root = "/home/www/google";
# realm = "jjjjjjjj";
# auth = "username:password";
# }
#}
}