Question about Vhost

morel ol.morel at
Wed Apr 4 09:58:49 UTC 2012


i have installed nginx on my web server, i can run the configtest on 
nginx.conf but i would want also check the configuration of my vhost .

When i try diverse handling  like this

  /usr/local/nginx/sbin/nginx -c -t 

all the time i get the same error

  * nginx: [emerg] unknown directive "server" in
  * nginx: configuration file
    /usr/local/nginx/vhosts-available/rSite1.conf test failed

My question is do you know theyre is  possibility to test vhost conf ?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list