Skip to content

Instantly share code, notes, and snippets.

@wolf0403
Created February 21, 2014 01:45
Show Gist options
  • Save wolf0403/9127297 to your computer and use it in GitHub Desktop.
Save wolf0403/9127297 to your computer and use it in GitHub Desktop.
Email subscription form "backend"
server {
#listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default ipv6only=on; ## listen for ipv6
listen 80 default_server;
server_name _;
root /home/ubuntu/landing-page;
access_log /var/log/nginx/access_80.log;
error_log /var/log/nginx/error_80.log;
location / {
index index.html;
}
location /subscribe {
empty_gif;
access_log /var/log/nginx/subscribe_log;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment