> I've been playing with the CGI plugin in uWSGI 1.4.4 and have a few
> questions:
>
> 1) I have both PSGI and CGI plugins compiled into my uswgi binary.
> When I run CGI scripts, the PLACK_ENV and PLACK_SERVER environment
> variables are defined.  Is that intentional? I expected them to only
> be set for PSGI apps.

environment variables are set on startup so if you not unset them they
will be hold in cgi scripts. You can use the --cgi-unset <var> option to
clear env vars.

>
> 2) The documentation example 9 for the CGI plugin uses 2  cgi-index
> directives:
>
> cgi-index = index.pl
> cgi-index = index.cgi
>
> I assume this is a mistake, and uWSGI will only run one of them
> (sorry, didn't try it myself).
>


cgi-index set the script to run if you request a "directory". If you set
multiple directives (like in the example) they will be tried one after the
other.

> 3) I tried to run a simple git server using the CGI plugin. I wonder
> if there is a way to use the cgi-index feature to serve repos from the
> root path:
>
> git clone http://myserver/repo.git
>
> I only could get it to work with an explicitly named CGI script, like
>
> git clone http://myserver/git/repo.git


--cgi /=_path_to_the_script

>
> 4) Is there a way to mix PSGI and CGI scripts in the same uWSGI
> instance without passing in the http modifier from the load balancer?
>
> Right now I either user --remap-modifier 9:0 for CGI or
> --remap-modifier 5:0 for PSGI. Is there a way to use both together?
>

as you have already discovered, internal routing (with the uwsgi router
plugin) is the way to go :)

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to