server { listen 80; server_name pad.ixvd.net; location / { proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr; proxy_pass http://cryptpad; } } server { listen 80; server_name sandbox.pad.ixvd.net; location / { proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr; proxy_pass http://cryptpad; } }