Automatic HTTP to HTTPS redirection in Tomcat

Automatic HTTP to HTTPS redirection in Tomcat
Automatically we can redirect non secure HTTP URL to secure HTTPS URL in tomcat. Any web application to secure the data transfer use to configure https access. Some times even after setting up the https access default http access also available along with https. This could a security thread for the application.

Assuming your already configured HTTPS access for the application , Now we need do the change web.xml in tomcat under apache-tomcat-8.0.36/conf/web.xml to redirect all non http access to https.

<!-- Added to redirect http to https -->
<security-constraint>
<web-resource-collection>
<web-resource-name>Whole Application</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>



Read More

Telnet test simulation in Unix and Solaris

Telnet test simulation in Unix and Solaris
Simulating telnet test in Linux ans Solaris is very easy. NC tool used to simulate the telnet test,We do telnet test to validate the connectivity between two machines.Telnet test gives us information mainly host and port are accessible from another machine. In order to validate this service should be running on specific port in other machine and in case this not running how can we simulate the port accessibility?

If the service is already running on specific port we can do the telnet test as like below.

telnet 128.25.65.12 8090

Now if the service is not running how to simulate telnet behavior?. This can be achieved by using 'NC' utility in linux/solaris. To simulate telnet first we need login destination machine and we need to start the system in listening mode as like below.

nc -l 8090

Once destination machine is started in listening mode, We can hit telnet test as mentioned abouve.
Read More

Easy FM radio any channels anywhere in the world

Easy FM radio any channels  anywhere in the world
Do you miss your favorite FM radio channels when you travel? or you want to hear your language FM when you outside your place?.Do you know we can play FM radio without head set in android mobile ?..All these are possible with one application.Now a days world is short and we are travelling across the world and we might feel missing our families some times. Hearing our local FM channels in outside our place making us to feel like staying in our place.Let's come to the point.

  There is an global radio connection provider which ties up with more than 4000 FM radio channels across the globe. When we access this site in our mobile/computer based on your location it automatically list the available channels to play.It also provides the flexibility to change the location to hear our favorite channels for your preferred location.
There is no special app is required to access this site in mobile. This can be accessed by using below URL.

Read More