######################
# Web Site: Default 
########################################

port=80
root=/:/var/www/default  # VirtualPath:PhysicalPath
hosts=*                  # *(any) or domain name

# User=www-data

# SET ASP.NET APPLICATION
#--------------------------------------------------------------
# AspNet.Workers=2        # Set the number of asp.net worker processes. Defauit is 1.
# AspNet.WorkerDomains=2  # Number of domains per process. (number or 'auto')
# AspNet.MaxCpuTime=7200  # CPU time used by each worker process. (Seconds)
# AspNet.MaxMemory=1024   # Memory used by each working process. (Megabytes)
#---------------------------------------------------------------------------



# addr=0.0.0.0
# CheckQuery=false
NoLog=true

# AppHost.Port=5000

# AppHost={cmd=dotnet /usr/local/x/app.dll; root=/usr/local/x; port=5000}

# NoFile=/index.aspx
# Keep_Alive=false
# UseGZIP=false

# HTTPS Configuration:
# UseHttps=true
# ssl.certificate=/x/xxx.crt  #or pem
# ssl.certificatekey=/x/xxx.key
# ssl.protocol=TLSv1.2 TLSv1.3
# ssl.ciphers=ECDHE-RSA-AES256-GCM-SHA384:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4:!DH:!DHE 
# ResponseHandler.Add=Strict-Transport-Security:max-age=15768000  #for https HSTS

# DenyFrom=192.168.0.233, 192.168.1.*, 192.168.2.0/24
# AllowFrom=192.168.*.*
# DenyDirs=~/cgi, ~/upfiles
# indexes=myindex.aspx


# Rewrite: URL rewite
# rewrite=^/test/(.+)(\.html)(|\?.+)$ /test/$1.aspx$3  #html to aspx

# Reject asp,cgi...: Rewrite the path to /.deny
# rewrite=^/.+?\.(asp|cgi|pl|sh|bash|dll)(\?.*|)$  /.deny


# Reverse proxy setup:
# reproxy=/bbs/  1.1.1.1:8080/bbs/
# reproxy=/bbs/  1.1.1.1:8080/bbs/, 1.1.1.2:8080/bbs/
# reproxy=/      2.2.2.2:80

# Forwarding bound IPv4 address list:
# forward_bind=192.168.254.251,192.168.254.252

# host.Redirect=abc.com www.abc.com  301

# Add HTTP headers to the response
# Example: ResponseHandler.Add=key:value
ResponseHandler.Add=X-Frame-Options:SAMEORIGIN
ResponseHandler.Add=X-Content-Type-Options:nosniff
#ResponseHandler.Add=Cache-Control:public, max-age=3600 #1hours

# Jexus php fastcgi address is '/var/run/jexus/phpsvr'
#######################################################
# fastcgi.add=php|socket:/var/run/jexus/phpsvr

# php-fpm listen address is '127.0.0.1:9000'
############################################
# fastcgi.add=php|tcp:127.0.0.1:9000


