Skip to content

Instantly share code, notes, and snippets.

server {
listen 198.211.104.30:80; ## listen for ipv4; this line is default and implied
root /home/ziber/public_html/load.liber.in;
index load.php;
server_name load.liber.in;
access_log /var/log/nginx/load.liber.in/access.log;
error_log /var/log/nginx/load.liber.in/error.log;
server {
listen 198.211.104.30:80; ## listen for ipv4; this line is default and implied
root /home/ziber/public_html/load.liber.in/;
index index.html index.htm index.php;
server_name load.liber.in;
location / {
# try_files $uri $uri/;
Host <alias>*
Hostname <hostname of server>
User <username>
Port <port>
[user@local] (~) $ ssh alias
Last login: ...
[user@host] (~) $
upstream nodes {
# server 198.211.114.109:8080 weight=1 max_fails=3 fail_timeout=30s;
server 127.0.0.1:80 weight=1 max_fails=3 fail_timeout=30s;
}
server {
listen 80; ## listen for ipv4; this line is default and implied
listen 127.0.0.1:80;
#listen [::]:80 default_server ipv6only=on; ## listen for ipv6