update config example file

master
fangdingjun 8 years ago
parent e500dadedd
commit 733d821e2c

@ -1,6 +1,12 @@
# vim: set ft=yaml:
#
# server config file
# document root # document root
docroot: /var/www/html docroot: /var/www/html
# used for http2 to determine local path request
# or proxy request
localdomains: localdomains:
- www.simicloud.com - www.simicloud.com
- localhost - localhost
@ -9,10 +15,14 @@ localdomains:
# listener # listener
listen: listen:
- -
# listen address
host: 0.0.0.0 host: 0.0.0.0
# listen port
port: 80 port: 80
# enable proxy
enableproxy: true # enable proxy or not
enableproxy: false
- -
host: 0.0.0.0 host: 0.0.0.0
port: 443 port: 443
@ -25,39 +35,50 @@ listen:
# url rules # url rules
urlrules: urlrules:
- -
# alias map url to path
urlprefix: /robots.txt urlprefix: /robots.txt
# available type: alias, fastcgi, uwsgi, http # available type: alias, fastcgi, uwsgi, http
type: alias type: alias
# target
target: target:
# availabe type for alias: file, dir # availabe target type for alias: file, dir
type: file type: file
path: /home/aaa/robots.txt path: /home/aaa/robots.txt
- -
# alias map url to path
urlprefix: /cc urlprefix: /cc
type: alias type: alias
target: target:
type: dir type: dir
path: /home/cc path: /home/cc
- -
# pass to uwsgi server
urlprefix: /media urlprefix: /media
type: uwsgi type: uwsgi
target: target:
# available type for uwsgi: unix, tcp # available target type for uwsgi: unix, tcp
type: unix type: unix
path: /path/to/media.sock path: /path/to/media.sock
- -
# pass all php script to fastcgi server
urlprefix: \.php$|\.php/ urlprefix: \.php$|\.php/
# use regex to match the url
isregex: true isregex: true
type: fastcgi type: fastcgi
target: target:
# available type for fastcgi: unix, tcp # available target type for fastcgi: unix, tcp
type: unix type: unix
path: /path/to/php.sock path: /path/to/php.sock
- -
urlprefix: /o urlprefix: /auth
# http resverse proxy
type: http type: http
target: target:
# available type for http: http, unix # available http type for http: http, unix
type: http type: http
host: 127.0.0.1 host: 127.0.0.1
port: 8080 port: 8080

Loading…
Cancel
Save