[Gambas-user] configure and use gambas web programs

Adrien Prokopowicz adrien.prokopowicz at ...626...
Mon Mar 13 22:23:22 CET 2017


Le Mon, 13 Mar 2017 17:06:44 +0100, PICCORO McKAY Lenz  
<mckaygerhard at ...626...> a écrit:

> 2017-03-13 11:36 GMT-04:00 Benoît Minisini  
> <gambas at ...1...>:
>
>> Configuring the execution of a CGI script has nothing to do with Gambas,
>> it's purely a specific web server configuration thing.
>>
>> again in same place, starting from zero! and reading the cgi principes!
> arrrgggg!
>
> does any body know how to configure the gambasforge[1] project in  
> webserver?
>
> [1] http://www.gambasforge.org/forge.html
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

Here is an extract of the Apache configuration for the GambasForge website.
It's a bit messy (We were young :) ), but the important parts are the  
"ExecCGI" options, as well as the "AddHandler cgi-script .cgi" extra file  
handlers.

Currently, this configuration only enables the use of the CGI scripts, and  
then we use an .htaccess file with a whole bunch of RewriteRules, so we  
have pretty URLs (such as /forge.html) to point to the main.gambas.cgi  
executable. Here is an extract :

	#forge
	RewriteRule   ^forge\.html$ main.gambas.cgi?section=forge [QSA]
	RewriteRule   ^mail\.html$ main.gambas.cgi?section=forge&action=sendmail  
[QSA]
	RewriteRule    
^categorie\-([0-9]+)(?:\-[a-z0-9\-]+)?(?:\-page\-([0-9]+))\.html$  
main.gambas.cgi?action=categorie&section=forge&id=$1&numpage=1 [QSA]
	RewriteRule    
^code\-([0-9]+)-ajoutercommentaire(?:\-[a-z0-9\-]+)?\.html$   
main.gambas.cgi?section=forge&action=addcomment&id=$1 [QSA]

And then, you can check the section and action parameters in your  
application to show the right page. :)

Hope that answers some of your questions. :)
Regards,
-- 
Adrien Prokopowicz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gambasforge.conf
Type: application/octet-stream
Size: 480 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20170313/d4545e90/attachment.obj>


More information about the User mailing list