# Question about Vhost

**URL:** <https://www.ruby-forum.com/t/question-about-vhost/218563>\
**Category:** NGINX\
**Created:** [April 4, 2012, 12:00pm UTC](https://www.ruby-forum.com/t/question-about-vhost/218563 "2012-04-04T12:00:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [April 4, 2012, 12:00pm UTC](https://www.ruby-forum.com/t/question-about-vhost/218563/1 "2012-04-04T12:00:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![morel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@morel](https://www.ruby-forum.com/u/morel)\
**Post date:** [April 4, 2012, 12:42pm UTC](https://www.ruby-forum.com/t/question-about-vhost/218563/2 "2012-04-04T12:42:21Z")

</div>

On 4 April 2012 10:58, morel [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

> **[Jonathan Matthews :: Words Typed, Great Rates For Cash](https://www.jpluscplusm.com)**
