Welcome! Log In Create A New Profile

Advanced

unknown directive "http"

Henri Reinikainen
May 30, 2012 01:18AM
Hi, sorry to bother

Nginx compiled from FreeBSD ports tree without errors. Tested with my
old config (worked before) and nginx.conf-dist default config. When I
removed http { } block, it started to complain from mime.types types { }
block.

OS:
FreeBSD 9.0-RELEASE GENERIC amd64

Error:
Performing sanity check on nginx configuration:
nginx: [emerg] unknown directive "http" in
/usr/local/etc/nginx/nginx.conf:17
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed

Version:
nginx-1.2.0_1,1

With:
HEADERS_MORE_MODULE
HTTP_CACHE_MODULE
HTTP_MODULE
HTTP_REWRITE_MODULE
HTTP_SSL_MODULE
HTTP_STATUS_MODULE
IPV6
WWW

- Henri

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

unknown directive "http"

Henri Reinikainen May 30, 2012 01:18AM

Re: unknown directive "http"

Sergey A. Osokin May 30, 2012 03:04AM

Re: unknown directive "http"

Henri Reinikainen May 30, 2012 03:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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