# Error during configuration of nginx with html and cgi-bin

**URL:** <https://www.ruby-forum.com/t/error-during-configuration-of-nginx-with-html-and-cgi-bin/215578>\
**Category:** NGINX\
**Created:** [January 9, 2012, 10:18am UTC](https://www.ruby-forum.com/t/error-during-configuration-of-nginx-with-html-and-cgi-bin/215578 "2012-01-09T10:18:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [January 9, 2012, 10:18am UTC](https://www.ruby-forum.com/t/error-during-configuration-of-nginx-with-html-and-cgi-bin/215578/1 "2012-01-09T10:18:16Z")

</div>

Hi

I am configuring the nginx , I have added the following entry in  
nginx.conf

server {  
listen 80;  
server\_name localhost;  
include /etc/nginx/mime.types;  
default\_type application/octet-stream;

location / {  
root /var/www/vendx/html\_asp;  
index index.html index.htm;  
}

```
location ~ \.cgi$ {
gzip off;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_index index.cgi;
fastcgi_param SCRIPT_FILENAME /var/www/vendx$fastcgi_script_name;
 }

```

When I trying to login I am getting the following error in logs.

2012/01/09 14:42:29 [error] 21061#0: \*1 open()  
“/var/www/vendx/html\_asp/graphs/mis/amcharts/ampie/data/1326100348\_21063\_account\_qcs\_waiting.xml”  
failed (2: No such file or directory), client: 192.168.1.44, server:  
localhost, request: “GET  
/graphs/mis/amcharts/ampie/data/1326100348\_21063\_account\_qcs\_waiting.xml  
HTTP/1.1”, host: “192.168.1.45”

Posted at Nginx Forum:

> **[Error during configuration of nginx with html and cgi-bin](https://forum.nginx.org/read.php?2,220951,220951#msg-220951)**
>
> Hi I am configuring the nginx , I have added the following entry in nginx.conf server { listen 80; server\_name localhost; include /etc/nginx/mime.types; default\_type application/octet-s
