Welcome! Log In Create A New Profile

Advanced

Re: What's the substitute for the Apache's ScriptAlias

Francis Daly
February 22, 2011 04:56AM
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.

http://httpd.apache.org/docs/current/mod/mod_alias.html#scriptalias 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 Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

What's the substitute for the Apache's ScriptAlias

sunjipeng_neu February 22, 2011 04:26AM

Re: What's the substitute for the Apache's ScriptAlias

Francis Daly February 22, 2011 04:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 210
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready