From 58aa449d2b97a34a6c06f5ca291438112b88bcf5 Mon Sep 17 00:00:00 2001 From: milisarge Date: Sat, 15 Apr 2017 19:23:36 +0300 Subject: [PATCH] ayarlar --- ayarlar/hiawatha-php/hiawatha.conf | 42 +++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 9 deletions(-) diff --git a/ayarlar/hiawatha-php/hiawatha.conf b/ayarlar/hiawatha-php/hiawatha.conf index 0570fb3ad..1555184a1 100644 --- a/ayarlar/hiawatha-php/hiawatha.conf +++ b/ayarlar/hiawatha-php/hiawatha.conf @@ -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 +} + + +