> * Roberto De Ioris <[email protected]> [2013-04-03
> 09:54]:
>>
>>> Hi,
>>>
>>> if a docroot is set via check-static or check-static-docroot is
>>> there a way to use CGI mountpoints to map URIs to CGI directories
>>> outside that docroot?
>>> I would like to enable CGI scripts generally for existing scripts
>>> inside the docroot but at the same time also have some URIs
>>> mapping to system paths as e.g.
>>> http://uwsgi-docs.readthedocs.org/en/latest/CGI.html#example-7-mailman-web-interface-behind-nginx
>>> --
>>> Guido Berhoerster
>>> _______________________________________________
>>> uWSGI mailing list
>>> uWSGI-FfzAktRlpg7/[email protected]
>>> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>>>
>>
>> You are able to specify all of the "cgi" mountpoint you need:
>>
>> [uwsgi]
>> cgi = /var/www
>> cgi = /mailman/=/usr/lib/mailman/cgis
>> cgi = /cgi-bin=/usr/lib/cgi-bin
>
> Sorry, I was wrong, it's not check-static-docroot but
> cgi-from-docroot which prevents additional mountpoints from
> working. Is that actually intentional and is there a way to make
> both cgi-from-docroot and additional mountpoints work?
>

Oh ok, yes cgi-from-docroot disables all the others check, and no, there
is no specific reason for it (it was what i needed for my company at time)
;)

In your case i think a "fallback" approach would be better, so uWSGI
starts scanning the cgi mountpoints and if nothing is found it fallback do
the docroot.

Seems reasonable ?

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

Reply via email to