NGINX
A virtual host in NGINX serves content based on settings found within /etc/nginx/nginx.conf
These settings can be modified to suit the needs of your server. Below is a basic nginx.conf
configuration.
################################################################################
# Basic barebones nginx.conf
# Provides starting point for building / learning nginx servers
################################################################################
events {} # Removing this will cause errors - just leave it empty if not used
# Create an http server(?)
http {
# /etc/nginx/mime.types for defining common file extensions nginx uses
# Nginx won't know how to handle *.css, *.html, etc without this
include mime.types; # More types can be added manually as well
# Create http virtual server
server {
# Specify which port nginx should serve this content on
listen 80;
# Specify the IP, domain, subdomains, etc. *.shaunreed.com
server_name www.shaunreed.com;
# Tell nginx where to find the content to serve
# This directory can be anywhere accessible by nginx
root /var/www/html;
}
}