# HG changeset patch # User Daichi TOMA # Date 1392080043 -32400 # Node ID beab26065b3c26e7dfceb2454e2119f88ae8d1cb add mighty settings diff -r 000000000000 -r beab26065b3c example.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/example.conf Tue Feb 11 09:54:03 2014 +0900 @@ -0,0 +1,23 @@ +# Example configuration for Mighttpd 2 +Port: 8080 +Debug_Mode: No # Yes or No +# If available, "nobody" is much more secure for User:. +User: root +# If available, "nobody" is much more secure for Group:. +Group: root +Pid_File: /var/run/mighty.pid +Logging: No # Yes or No +Log_File: /var/log/mighty # The directory must be writable by User: +Log_File_Size: 16777216 # bytes +Log_Backup_Number: 10 +Index_File: index.html +Index_Cgi: index.cgi +Status_File_Dir: /usr/local/share/mighty/status +Connection_Timeout: 30 # seconds +Fd_Cache_Duration: 10 # seconds +# Server_Name: Mighttpd/2.x.y +Tls_Port: 443 +Tls_Cert_File: certificate.pem # should change this with an absolute path +# Currently, Tls_Key_file must not be encrypted. +Tls_Key_file: key.pem # should change this with an absolute path +Service: 0 # 0 is HTTP only, 1 is HTTPS only, 2 is both diff -r 000000000000 -r beab26065b3c example.route --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/example.route Tue Feb 11 09:54:03 2014 +0900 @@ -0,0 +1,23 @@ +# Example routing for Mighttpd 2 + +# Domain lists +[localhost bldsv12.cr.ie.u-ryukyu.ac.jp] + +# Entries are looked up in the specified order +# All paths must end with "/" + +# A path to CGI scripts should be specified with "=>" +# /~alice/cgi-bin/ => /home/alice/public_html/cgi-bin/ + +# A path to static files should be specified with "->" +# /~alice/ -> /home/alice/public_html/ +# /cgi-bin/ => /export/cgi-bin/ + +# Reverse proxy rules should be specified with ">>" +# /path >> host:port/path2 +# Either "host" or ":port" can be committed, but not both. +# /app/cal/ >> example.net/calendar/ +# Yesod app in the same server +# /app/wiki/ >> 127.0.0.1:3000/ + +/ -> /home/amothic/mighty/index/ diff -r 000000000000 -r beab26065b3c index/index.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/index/index.html Tue Feb 11 09:54:03 2014 +0900 @@ -0,0 +1,1 @@ +hello, world