Forum

About TimeForCGI

godguy
5 August 2008, 06:39
hi:
i want to use differenct value for TimeForCGI for differenct vitual host. can hiawatha support it?
i try to put TimeForCGI = 600 in vitual host section, hiawatha will print error.
my httpd.conf is:
# Hiawatha main configuration file
#
# GENERAL SETTINGS
#
ServerId = 33:33
ConnectionsTotal = 100
ConnectionsPerIP = 10
SystemLogfile = /usr/local/var/log/hiawatha/system.log
GarbageLogfile = /usr/local/var/log/hiawatha/garbage.log
# BINDING SETTINGS
# A binding is where a client can connect to.
#
Binding {
Port = 80
MaxRequestSize = 15360
Interface = 10.155.20.113
}
#
Binding {
Port = 443
MaxRequestSize = 15360
Interface = 10.155.20.113
ServerKey = /usr/local/etc/hiawatha/webui_serverkey.pem
UseSSL = yes
}
#
# COMMON GATEWAY INTERFACE (CGI) SETTINGS
# These settings can be used to run CGI applications.
#
CGIextension = cgi
TimeForCGI = 180
CGIhandler = /opt/ah/bin/ah_capture:php

# FastCGI
#
FastCGIserver {
FastCGIid = PHP5
ConnectTo = 127.0.0.1:2008
Extension = php5
}

# DEFAULT WEBSITE
#
Hostname = 127.0.0.1
WebsiteRoot = /usr/local/var/www/hiawatha
StartFile = index.html
ExecuteCGI = yes
AccessLogfile = /usr/local/var/log/hiawatha/access.log
ErrorLogfile = /usr/local/var/log/hiawatha/error.log

# VIRTUAL HOSTS
# Use a VirtualHost section to declare the websites you want to host.
#
VirtualHost {
Hostname = 10.155.20.113
WebsiteRoot = /usr/local/var/www/hiawatha/webui
StartFile = index.php5
FastCGI = PHP5
TimeForCGI = 180 <=i want to add this item in my virtual host section
}


how to do it ?

thanks!
godguy
5 August 2008, 13:13
the version is:
Hiawatha v5.7, SSL, cache
Hugo Leisink
8 August 2008, 15:55
The requested feature has been added in Hiawatha v6.2. Update to the latest release of Hiawatha, and your problem will be solved.
godguy
11 August 2008, 07:15
oh! thanks for your message. Are there a good way to resolve it? for example: can you provide me a patch?
if i update the hiawatha, we need more day to do more testing.
Hugo Leisink
11 August 2008, 09:45
I'm sorry, I not going to supply you with a patch. I get these 1-feature change questions more often. It would take too much time. And besides that, several bugfixes have been done since 5.7. That's another reason to upgrade.

What you can do is download 6.8, compile it, backup your configuration, run 6.8 with the '-k' option, adjust the configuration file and run 6.8 on a different port than 80. This way you can test if 6.8 still works for you.
godguy
11 August 2008, 12:17
ok, thanks!
godguy
11 August 2008, 13:57
hi:
how to download ver 6.2? i only can find the latest version (6.8) in website.
Hugo Leisink
11 August 2008, 16:13
Why download 6.2 if 6.8 is available???

Anyway, 6.2 can be found here [projects.leisink.org].
godguy
12 August 2008, 05:30
thanks!
godguy
12 August 2008, 12:31
BTW: can you provide your all version list for downloading?
now i want to download the version 6.6. can you give me a link.

very thanks. we decide to update the hiawatha from 5.7 to 6.6, can you give me some suggestions ?
Hugo Leisink
12 August 2008, 13:47
Well, just take a look at the link in the download section. Change 6.8 to 6.6 and you're done. By why do you want 6.6 if 6.8 is available?????
godguy
13 August 2008, 05:22
hi :
thanks for your replay. i have downloaded the version 6.6. very thanks!
godguy
13 August 2008, 06:34
BTW: what difference about hiawatha version 6.6 and 6.7 ?
what differenct about hiawatha version 6.7 and 6.8 ?

Hugo Leisink
13 August 2008, 09:35
You can read that in the changelog [projects.leisink.org].
This topic has been closed.