Hi all
I am installing a new Hobbit server, running 4.1.2p1 on Solaris 10 with Apache 2.2.0 It's starting to look good. I get the main hobbit page come up, and many green faces smiling at me. However, whenever I click on a face, or any menu option that runs a script, my browser opens a dialogue box and wants to start a download. :-(
When I go to the Hobbit home page with the same browser, it all works OK, so I am certain it's either a stuff-up with my Hobbit install, or an Apache server config problem. Everything in the ~hobbit/cgi-* is readable and executable by all.
What's happening here? Have I missed something?
Regards Vernon
On Fri, 21 Jul 2006, Everett, Vernon wrote:
Hi all
I am installing a new Hobbit server, running 4.1.2p1 on Solaris 10 with Apache 2.2.0 It's starting to look good. I get the main hobbit page come up, and many green faces smiling at me. However, whenever I click on a face, or any menu option that runs a script, my browser opens a dialogue box and wants to start a download. :-(
When I go to the Hobbit home page with the same browser, it all works OK, so I am certain it's either a stuff-up with my Hobbit install, or an Apache server config problem. Everything in the ~hobbit/cgi-* is readable and executable by all.
What's happening here? Have I missed something?
You need to configure apache so that it knows that the cgi directories are indeed just that :)
Something like this
ScriptAlias /hobbit-cgi/ "/usr/lib/hobbit/cgi-bin/" <Directory "/usr/lib/hobbit/cgi-bin"> AllowOverride None Options ExecCGI Includes </Directory> ScriptAlias /hobbit-seccgi/ "/usr/lib/hobbit/cgi-secure/" <Directory "/usr/lib/hobbit/cgi-secure"> AllowOverride None Options ExecCGI Includes </Directory>
-- Kolbjørn Barmen UNINETT Driftsenter
On Fri, Jul 21, 2006 at 01:09:59PM +0800, Everett, Vernon wrote:
Hi all
I am installing a new Hobbit server, running 4.1.2p1 on Solaris 10 with Apache 2.2.0 It's starting to look good. I get the main hobbit page come up, and many green faces smiling at me. However, whenever I click on a face, or any menu option that runs a script, my browser opens a dialogue box and wants to start a download. :-(
If you do download it, then what's in the file - a shell script, or an HTML document ?
If it's a shell script, then your cgi directories are not seen as such, and you're just getting the shell script sent back to you as a plain file. If it's an HTML document, then the CGI program runs and generates the correct response - in that case, I suspect that your webserver doesn't provide the right Content-type header, although the Hobbit CGI programs all try their best to set this correctly.
If you've got something like "curl" installed then running curl -i http://hobbit-cgi/..... |more will show you the headers sent by the webserver. If you dont have that, then you can just telnet to the webserver on port 80, and send it GET http://hobbit-cgi/..... <hit enter twice>
Regards, Henrik
participants (3)
-
henrik@hswn.dk
-
kolbjorn.barmen@uninett.no
-
Vernon.Everett@dpi.wa.gov.au