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 2012-08-09 00:55
on 2012-08-09 01:08
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 have > > ScriptAlias /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 f -- Francis Daly francis@daoine.org
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.