[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] RE: Hosting compiled c programs in virtual sites



Hi Malcolm,

We've tried a mix of gcc,cc + c++.

The problem seems to be getting Apache to execute the 
compiled code.

With the "AllowOverride Options" configured in the Apache 
Conf files we should be able to put a .htaccess file in 
the directory containing the executable and this should do 
the same as a 'local' ScriptAlias but all it does is 
echoes the complied jibberish to the screen.

We've found a work-round in actually specifying a 
<Directory.. in that virt sites section of hhtpd.conf and 
then selecting our own .extension like 'program.hello' 
then adding a AddHandler for that extension type to treat 
it as a cgi-script.

Seems to work but its a bit messy and im gonna try to get 
the .htaccess stuff to work to save editing the conf files 
every two minutes however the current way i'm sure is more 
secure!

Any thoughts would be greatly appreciated.

Steven
 

___________________________________________________________
____
Get online at http://www.iq100.net today and tell your 
friends!
...it's free, quick and easy. You won't get engaged tones 
and
we won't tell you how to run your life!