Quantcast
Channel: Plesk Forum
Viewing all articles
Browse latest Browse all 45788

How to remove the HTML body of a 301 return of NGINX?

$
0
0
When I perform a "curl h t t p : / / talk.plesk.com"

I get:
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

This is the default behavior of nginx for a 301 redirect. The same happens on my websites and I would like to get rid of this HTML body to save bytes and also because it is barely in compliance with the rfc7231

RFC 7231 -...

How to remove the HTML body of a 301 return of NGINX?

Viewing all articles
Browse latest Browse all 45788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>