/etc/nginx/conf.d/virtual.conf - CentOS Linux 6

This is the default example configuration of virtual.conf provided by nginx. This config file was generated by nginx running on CentOS 6.

It is located under: /etc/nginx/conf.d/virtual.conf

    #
# A virtual host using mix of IP-, name-, and port-based configuration
#

#server {
#    listen       8000;
#    listen       somename:8080;
#    server_name  somename  alias  another.alias;

#    location / {
#        root   html;
#        index  index.html index.htm;
#    }
#}


    
  

Config Details

Location
/etc/nginx/conf.d/virtual.conf
Operating system
CentOS Linux 6
Length
15 lines
MD5 checksum
bcf17923577a912a2a3f207bc8b20ab7

Usage

Download the raw file with wget or curl

Wget

wget -O virtual.conf.example http://exampleconfig.com/static/raw/nginx/centos6/etc/nginx/conf.d/virtual.conf

cURL

curl http://exampleconfig.com/static/raw/nginx/centos6/etc/nginx/conf.d/virtual.conf > virtual.conf.example