Hi all,
Is there a possible way too hide the nginx version that is shown for a
return value of 403, 500 etc…
Thank You,
Himesh.
Posted at Nginx Forum:
Hi all,
Is there a possible way too hide the nginx version that is shown for a
return value of 403, 500 etc…
Thank You,
Himesh.
Posted at Nginx Forum:
server_tokens off
Regards,
Joe
himesh wrote:
Hi all,
Is there a possible way too hide the nginx version that is shown for
a return value of 403, 500 etc…
http://wiki.nginx.org/NginxChsHttpCoreModule#error_page
server {
listen 80;
server_name www.example.com;
root /srv/www/www.example.com
index index.html;
…
# redirect server error pages to the static page /50x.html
error_page 404 /404.html;
error_page 410 /410.html;
error_page 413 /413.html;
error_page 503 /503.html;
error_page 500 502 504 /50x.html;
location / {
...
}
}
More information:
http://wiki.nginx.org/NginxHttpCoreModule#server_tokens
I put in http context.
Joe, thank you! I don’t knew about this config.
2009/11/25 Joe [email protected]
–
Eduardo Velasques
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs