What's the substitute for the Apache's ScriptAlias

For example:

ScriptAlias /cgi-bin/ “/home1/irteam/gaga/cgi-bin/”

I haven’t found the related directive to the “ScriptAlias” in Nginx.

Anyone can help me?

Thanks

Posted at Nginx Forum:

On Tue, Feb 22, 2011 at 04:26:03AM -0500, sunjipeng_neu wrote:

Hi there,

ScriptAlias /cgi-bin/ “/home1/irteam/gaga/cgi-bin/”

I haven’t found the related directive to the “ScriptAlias” in Nginx.

mod_alias - Apache HTTP Server Version 2.4 says
what ScriptAlias does. It is “Alias” with “Options +ExecCGI”.

nginx does have an alias directive.

nginx does not “do” cgi. You can proxy_pass to a cgi-handling http
server,
or fastcgi_pass or scgi_pass or something similar, to a suitable server.

Once you have your cgi-handling server working, you configure the
appropriate *_pass in the appropriate location block.

Good luck with it,

f

Francis D. [email protected]