Question about Vhost

hy

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
/etc/nginx/conf/vhosts-available/Site1.conf

all the time i get the same error

  • nginx: [emerg] unknown directive “server” in
    /usr/local/nginx/vhosts-available/Site1.conf
  • 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 ?

Cordially

Oliver

On 4 April 2012 10:58, morel [email protected] wrote:

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 .

By testing your main config, you’re automatically testing all included
files as well.

Jonathan

Jonathan M.
London, Oxford, UK
http://www.jpluscplusm.com/contact.html