Created
March 20, 2014 18:51
-
-
Save trinitronx/9671124 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@lwrps-centos-65 ~]$ sudo /sbin/service nginx reload | |
nginx: [emerg] a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/test-site:6 | |
nginx: configuration file /etc/nginx/nginx.conf test failed | |
[vagrant@lwrps-centos-65 ~]$ | |
[vagrant@lwrps-centos-65 ~]$ | |
[vagrant@lwrps-centos-65 ~]$ cat /etc/nginx/sites-available/default | |
# Generated by Chef for lwrps-centos-65 (nginx version: 1.0.15) | |
# | |
# Local modifications will be overwritten. | |
# | |
server { | |
listen 80; | |
server_name lwrps-centos-65; | |
access_log /var/log/nginx/default-access.log; | |
error_log /var/log/nginx/default-error.log; | |
location / { | |
root /var/www/nginx-default; | |
index index.html index.htm; | |
} | |
} | |
[vagrant@lwrps-centos-65 ~]$ | |
[vagrant@lwrps-centos-65 ~]$ | |
[vagrant@lwrps-centos-65 ~]$ cat /etc/nginx/sites-available/test-site | |
# Generated by Chef for lwrps-centos-65 (nginx version: 1.0.15) | |
# | |
# Local modifications will be overwritten. | |
# | |
server { | |
listen 80 default_server; | |
server_name lwrps-centos-65; | |
access_log /var/log/nginx/test-site-access.log; | |
error_log /var/log/nginx/test-site-error.log; | |
location / { | |
root /var/www/test-site; | |
index index.html index.htm; | |
} | |
} | |
[vagrant@lwrps-centos-65 ~]$ nginx -v | |
nginx version: nginx/1.0.15 | |
[vagrant@lwrps-centos-65 ~]$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment