I have to configure nginx.conf just like the httpd.conf and stuck while
configuring ScriptAlias. I have
ScriptAlias /cgi-bin/ “/var/www/cgi-bin/”
i want to write the above in nginx.conf. How can I write it?
I have to configure nginx.conf just like the httpd.conf and stuck while
configuring ScriptAlias. I have
ScriptAlias /cgi-bin/ “/var/www/cgi-bin/”
i want to write the above in nginx.conf. How can I write it?
On Thu, Aug 09, 2012 at 12:55:58AM +0200, Swapnil P. wrote:
Hi there,
I have to configure nginx.conf just like the httpd.conf and stuck while
configuring ScriptAlias. I haveScriptAlias /cgi-bin/ “/var/www/cgi-bin/”
i want to write the above in nginx.conf. How can I write it?
location /cgi-bin/ {
proxy_pass http://apache_server:apache_port
}
(ScriptAlias in apache httpd is for configuring CGI handling. nginx
doesn’t handle CGI, so you need to decide how you want the urls to be
handled. This version just proxies them to your running apache.)
Depending on the rest of your nginx.conf, you may want " ^~" after
“location”.
http://nginx.org/r/location
http://nginx.org/r/proxy_pass
Francis D. [email protected]
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs