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
# 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/python:py
#CGIhandler = /usr/bin/ruby:rb
#CGIhandler = /usr/bin/ssi-cgi:shtml
#CGIextension = cgi
CGIextension = pl,cgi
#TriggerOnCGIstatus = no
#
#ConnectTo = /var/lib/hiawatha/php-fcgi.sock
@ -87,13 +87,13 @@ FastCGIserver {
# ExpirePeriod = 2 weeks
#}
#
#Directory {
# DirectoryID = files
# Path = /files
# ShowIndex = yes
# StartFile = index.html
# ExecuteCGI = no
#}
# farklı dizin ayarları için
Directory {
DirectoryID = files
Path = /proje1
StartFile = index.php
ExecuteCGI = yes
}
# DEFAULT WEBSITE
@ -104,10 +104,12 @@ FastCGIserver {
Hostname = 127.0.0.1
WebsiteRoot = /srv/http/hiawatha
StartFile = index.html
UseDirectory= files
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
UseFastCGI = PHP5
# VIRTUAL HOSTS
# Use a VirtualHost section for each website you want to host.
#
@ -121,3 +123,25 @@ UseFastCGI = PHP5
# UseToolkit = banshee
# 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
}