This commit is contained in:
milisarge 2017-04-15 19:23:36 +03:00
parent 48af38748b
commit 58aa449d2b
1 changed files with 33 additions and 9 deletions

View File

@ -48,12 +48,12 @@ ExecuteCGI = yes
# COMMON GATEWAY INTERFACE (CGI) SETTINGS # COMMON GATEWAY INTERFACE (CGI) SETTINGS
# These settings can be used to run CGI applications. # These settings can be used to run CGI applications.
# #
#CGIhandler = /usr/bin/perl:pl CGIhandler = /usr/bin/perl:pl
#CGIhandler = /usr/bin/php-cgi:php #CGIhandler = /usr/bin/php-cgi:php
#CGIhandler = /usr/bin/python:py #CGIhandler = /usr/bin/python:py
#CGIhandler = /usr/bin/ruby:rb #CGIhandler = /usr/bin/ruby:rb
#CGIhandler = /usr/bin/ssi-cgi:shtml #CGIhandler = /usr/bin/ssi-cgi:shtml
#CGIextension = cgi CGIextension = pl,cgi
#TriggerOnCGIstatus = no #TriggerOnCGIstatus = no
# #
#ConnectTo = /var/lib/hiawatha/php-fcgi.sock #ConnectTo = /var/lib/hiawatha/php-fcgi.sock
@ -87,13 +87,13 @@ FastCGIserver {
# ExpirePeriod = 2 weeks # ExpirePeriod = 2 weeks
#} #}
# #
#Directory { # farklı dizin ayarları için
# DirectoryID = files Directory {
# Path = /files DirectoryID = files
# ShowIndex = yes Path = /proje1
# StartFile = index.html StartFile = index.php
# ExecuteCGI = no ExecuteCGI = yes
#} }
# DEFAULT WEBSITE # DEFAULT WEBSITE
@ -104,10 +104,12 @@ FastCGIserver {
Hostname = 127.0.0.1 Hostname = 127.0.0.1
WebsiteRoot = /srv/http/hiawatha WebsiteRoot = /srv/http/hiawatha
StartFile = index.html StartFile = index.html
UseDirectory= files
AccessLogfile = /var/log/hiawatha/access.log AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log ErrorLogfile = /var/log/hiawatha/error.log
UseFastCGI = PHP5 UseFastCGI = PHP5
# VIRTUAL HOSTS # VIRTUAL HOSTS
# Use a VirtualHost section for each website you want to host. # Use a VirtualHost section for each website you want to host.
# #
@ -121,3 +123,25 @@ UseFastCGI = PHP5
# UseToolkit = banshee # UseToolkit = banshee
# UseDirectory = static, files # UseDirectory = static, files
#} #}
UrlToolkit {
ToolkitID = monitor
RequestURI isfile Return
Match ^/(css|files|fonts|images|js)(/|$) Return
Match ^/(favicon.ico|robots.txt)$ Return
Match [^?]*(\?.*)? Rewrite /index.php$1
}
VirtualHost {
Hostname = milis
WebsiteRoot = /srv/www/monitor/public
StartFile = index.php
AccessLogfile = /srv/www/monitor/logfiles/access.log
ErrorLogfile = /srv/www/monitor/logfiles/error.log
ExecuteCGI = yes
UseFastCGI = PHP5
TimeForCGI = 15
UseToolkit = monitor
}