# V 0.9.4: unexpected end of file, expecting "; " or "}" in /etc/mime.types:789

**URL:** <https://www.ruby-forum.com/t/v-0-9-4-unexpected-end-of-file-expecting-or-in-etc-mime-types-789/203110>\
**Category:** NGINX\
**Created:** [February 13, 2011, 3:25am UTC](https://www.ruby-forum.com/t/v-0-9-4-unexpected-end-of-file-expecting-or-in-etc-mime-types-789/203110 "2011-02-13T03:25:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [February 13, 2011, 3:25am UTC](https://www.ruby-forum.com/t/v-0-9-4-unexpected-end-of-file-expecting-or-in-etc-mime-types-789/203110/1 "2011-02-13T03:25:17Z")

</div>

Hi Folks

I couldn’t see a reference to this in the recent archives, and googling  
didn’t help.

I’ve just installed Debian 6 on a new laptop, and compiled nginx 0.9.4  
with:  
./configure --with-http\_ssl\_module --with-http\_gzip\_static\_module   
–without-http\_autoindex\_module --without-http\_browser\_module  
–without-http\_fastcgi\_module   
–without-http\_geo\_module --without-http\_empty\_gif\_module  
–without-http\_map\_module   
–without-http\_proxy\_module --without-http\_memcached\_module  
–without-http\_ssi\_module   
–without-http\_userid\_module --prefix=/usr/local/nginx  
–sbin-path=/usr/local/sbin/nginx   
–conf-path=/etc/nginx.conf --pid-path=/var/run/nginx.pid  
–http-log-path=/var/log/nginx/access.log   
–error-log-path=/var/log/nginx/error.log --user=nginx --group=nginx

Starting nginx with the default /etc/nginx.conf, with Debian’s  
default /etc/mime.types gives:

nginx@zigzag:~$ nginx: [emerg] unexpected end of file, expecting “;” or  
“}” in /etc/mime.types:789

Any ideas?

–  
Ron Savage

> **[Ron's Flower Power](http://savage.net.au/)**
>
> Ron Savage's flower database is on-line

Ph: 0421 920 622

---

<div class="post-metadata">

**Author:** ![Ron\_Savage](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@Ron\_Savage](https://www.ruby-forum.com/u/Ron_Savage)\
**Post date:** [February 13, 2011, 4:55am UTC](https://www.ruby-forum.com/t/v-0-9-4-unexpected-end-of-file-expecting-or-in-etc-mime-types-789/203110/2 "2011-02-13T04:55:26Z")

</div>

Hi,

On 13/02/2011 04:23, Ron Savage wrote:

> –without-http\_geo\_module --without-http\_empty\_gif\_module  
> default /etc/mime.types gives:
> 
> nginx@zigzag:~$ nginx: [emerg] unexpected end of file, expecting “;” or  
> “}” in /etc/mime.types:789  
> /etc/mime.types is not an Nginx config file on my Debian 6 setup. The  
> default config folder for Nginx is /etc/nginx, and the default config  
> file is /etc/nginx/nginx.conf. The mime.types file is  
> /etc/nginx/mime.types. You should probably just use /etc/nginx as your  
> base, not /etc.

Cheers,

Marcus.

---

<div class="post-metadata">

**Author:** ![Ron\_Savage](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@Ron\_Savage](https://www.ruby-forum.com/u/Ron_Savage)\
**Post date:** [February 13, 2011, 4:57am UTC](https://www.ruby-forum.com/t/v-0-9-4-unexpected-end-of-file-expecting-or-in-etc-mime-types-789/203110/3 "2011-02-13T04:57:57Z")

</div>

Btw, /etc/mime.types does exist on my Debian 6 setup, it’s just not an  
Nginx config file.

Marcus.

---

<div class="post-metadata">

**Author:** ![Ron\_Savage](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@Ron\_Savage](https://www.ruby-forum.com/u/Ron_Savage)\
**Post date:** [February 13, 2011, 6:11am UTC](https://www.ruby-forum.com/t/v-0-9-4-unexpected-end-of-file-expecting-or-in-etc-mime-types-789/203110/4 "2011-02-13T06:11:56Z")

</div>

Hi Marcus

On Sun, 2011-02-13 at 05:53 +0200, Eugaia wrote:

> > ./configure --with-http\_ssl\_module --with-http\_gzip\_static\_module   
> > –error-log-path=/var/log/nginx/error.log --user=nginx --group=nginx  
> > base, not /etc.  
> > Thanx for the replies. You gave me an idea.

I understand /etc/mime.types is a Deb file, not an nginx file.

I changed my config.sh to use  
–conf-path=/etc/nginx/nginx.conf rather than as above,  
/and/ copied /etc/mime.types to /etc/nginx/  
assuming there was a bug in nginx when the config was /etc/nginx.conf,  
in that the line # of the error is the (correct) last line  
of /etc/mime.types, so I guess the code is not handling properly the  
case where nginx.conf and mime.types are in /etc/, somehow.

And yes, after cleaning up my old proxy pass stuff, that fixed it.

Many thanx.

–  
Ron Savage

> **[Homepage](http://savage.net.au/)**
>
> Homepage

Ph: 0421 920 622
