Question

What is my VHOST file?

I have setup my LEMP stack and nowhere was VHOST mentioned. But I see it referred to in places, vaguely, ‘update your VHOST file’ such as in q/a of https://www.digitalocean.com/community/tutorials/how-to-set-up-wordpress-multisite-with-nginx-on-ubuntu-14-04 but nowhere was it mentioned - have I missed something?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Ryan Quinn
DigitalOcean Employee
DigitalOcean Employee badge
August 25, 2016
Accepted Answer

I can see how this could be confusing. When the person commenting referred to a VHOST file they were referring to the configuration file you set up in /etc/nginx/sites-enabled/

For a little background, VHOST is short for VirtualHost. This term is used by the Apache webserver with <VirtualHost> being a section in the configuration file. On nginx this is done with “server blocks” that start with server {.

In both cases the configuration uses the name requested to know which site is being asked for instead of each site having it’s own IP address. Each of these sites may be called “Name-based virtual hosts” or VHOSTs for short.

Thanks thats a bit clearer now.

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.