Right, they don't call it virtual box here. They call it server block. Anyway, below file runs two websites as virtual host:
Website name: n123test.com and multi32.com
#
# A virtual host using mix of IP-, name-, and port-based configuration
#
server {
listen 80;
# listen *:80;
server_name n123test.com;
location / {
root /var/www/ntest/public_html;
index index.html index.htm;
}
}
server {
listen 80;
# listen *:80;
server_name multi32.com;
location / {
root /var/www/multi32/;
index index.html index.htm;
}
}
Website name: n123test.com and multi32.com
#
# A virtual host using mix of IP-, name-, and port-based configuration
#
server {
listen 80;
# listen *:80;
server_name n123test.com;
location / {
root /var/www/ntest/public_html;
index index.html index.htm;
}
}
server {
listen 80;
# listen *:80;
server_name multi32.com;
location / {
root /var/www/multi32/;
index index.html index.htm;
}
}
Comments
Post a Comment