Welcome! Log In Create A New Profile

Advanced

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

Ron Savage
February 13, 2011 12:12AM
Hi Marcus

On Sun, 2011-02-13 at 05:53 +0200, Eugaia wrote:
> Hi,
>
> On 13/02/2011 04:23, Ron Savage wrote:
> > 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
> /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.

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
http://savage.net.au/
Ph: 0421 920 622


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

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

Ron Savage February 12, 2011 09:28PM

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

Eugaia February 12, 2011 10:58PM

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

Ron Savage February 13, 2011 12:12AM

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

Eugaia February 12, 2011 10:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 226
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