Category: Servers
Monitor Tomcat with JMX and jConsole
This tutorial shows how to monitor Tomcat with JMX via jConsole. Monitoring is a key aspect for developers or system administrators. Looking inside a running server, obtaining some statistics like: Heap / Non-heap memory...
Configure Tomcat To Use SSL/TLS Over HTTPS
In this tutorial we show how to configure Tomcat to use SSL/TLS over HTTPS. Secure Socket Layer (SSL), which now refers to the Transport Layer ouSecurity (TLS), is a protocol that encrypts the communication...
Configure JNDI Datasource in Tomcat
Almost all web applications need to access a database. So we need to be aware what the best practices are in order to configure these databases efficiently. A database connection is expensive to make,...
How to Install and Configure CDI in Tomcat
This tutorial shows how to install and configure CDI in tomcat. To start you must know what tomcat is. Tomcat is a JSP/Servlet container. And more importantly what tomcat is not. Tomcat is not...
Nginx change server attribute in HTTP response header
Changing your server attribute sent with every HTTP response header can positively affect your security. Because some hackers examine your response headers in search for particular versions with known vulnerabilities so they can exploit them. In the...
Nginx Redirect IP address to domain name
Preferred canonical Url A canonical link helps search engines prevent duplicate content. The duplicate content problem rises when a webpage is accessible by multiple URLs. For example http://www.example.com is a considered a different URL than http://example.com....
Nginx redirect no-www to www and www to no-www
You can configure nginx to return http://example.com instead of http://www.example.com and vice versa. This setting is important because you want your want your visitors to both access your website via www an no-www. Nginx redirect...
Hide Nginx version from the HTTP response headers
Why sending your version number is bad When you sent your Nginx version number with every request you are basically telling what software your server is running on. This can be a potentially dangerous...
How to start stop restart reload nginx on linux
It can be quite frustrating not knowing how to mangage your server. I’ve been in the situation myself just for a reminder i’ve listed all the commands here how you can start, stop, reload...