[nginx] 200 status page with servername

By.

min read

Share

[code:1:aee610705d]server {
listen 80;
server_name serverhostnamehere serveraliashere;

location / {
return 200 "OK $host";
}
}[/code:1:aee610705d]

[b:aee610705d]Based on[/b:aee610705d]: http://davidx.me/2014/12/29/return-text-with-nginx/

Leave a Reply

Your email address will not be published. Required fields are marked *