Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Plain Text by cs ( 16 years ago )
server {
        listen  80;
        server_name default;
        root /var/www;

        location / {
                root /var/www/;
                index index.htm index.html;
        }
}

server {
        listen  80;
        server_name     sub1.domain.com;
        #root /home/www/;
        access_log /var/log/nginx/access.log;
        error_log /var/log/nginx/error.log;

        location / {
                root /var/www/static/sub1/;
                index index.htm index.html;
        }
}

 

Revise this Paste

Parent: 19624
Your Name: Code Language: