124 lines
3.0 KiB
ApacheConf
124 lines
3.0 KiB
ApacheConf
#
|
|
# this is a sample configuration file for qsehttpd.
|
|
#
|
|
|
|
default {
|
|
# the default name is used in http headers and in pages
|
|
# generated by httpd.
|
|
name = "QSEHTTPD v1";
|
|
|
|
# document root
|
|
root = "/";
|
|
|
|
realm = "default realm";
|
|
auth = "username:password";
|
|
index = "index.ant",
|
|
"index.html",
|
|
"index.cgi";
|
|
|
|
cgi {
|
|
#name "t3.nph" = "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;
|
|
}
|
|
|
|
dir-css = "<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>";
|
|
error-css = "<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>";
|
|
}
|
|
|
|
server {
|
|
bind = "0.0.0.0:1999";
|
|
|
|
# ssl is not supported yet.
|
|
#ssl {
|
|
# certificate {
|
|
# private = "xxxx";
|
|
# public = "xxxx";
|
|
# }
|
|
#}
|
|
|
|
host "*" {
|
|
location "/" {
|
|
# the location-specific name is used in pages
|
|
# generated by httpd, not in http headers.
|
|
# you can't override the default name for use in
|
|
# http headers.
|
|
#name = "QSEHTTPD v1";
|
|
|
|
# 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";
|
|
#}
|
|
}
|
|
|
|
# other locations than / are not supported yet.
|
|
#location "/help" {
|
|
#}
|
|
}
|
|
|
|
# virtual hosts are not supported yet.
|
|
#host "www.google.com" {
|
|
# location "/" {
|
|
# root = "/home/www/google";
|
|
# auth {
|
|
# realm = "jjjjjjjj";
|
|
# name = "www.google.com";
|
|
# password = "zzzzzzzzzzzzzzzz";
|
|
# }
|
|
# }
|
|
#}
|
|
}
|