[nginx] 200 status page with servername

By.

min read

My profile

Share this:

[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/

Share this:

Leave a Reply

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