T : +(603) 7806 3550   |   F : +(603) 7806 5586

Thursday 20 March 2014

{Tomcat} Proxy: How to Block Direct Access





This topic discusses about Tomcat 7 on Ubuntu. It is a topic on how to Block Direct Access based on an article here. I wanted to be able to make these changes and benefit from it too.



Ubuntu


Ubuntu is a Linux operating system. According to some matrix it is the most popular operating system. You can find out more about Ubuntu through their official website and download Ubuntu for free (Server Ed.).

Tomcat 7


Apache Tomcat is an open source software implementation of Java Servlet and JavaServer Pages Technologies. More on Apache Tomcat can be found through their official website and you can download Tomcat 7 for free.

Java Servlet:



Java Servlet is a programming class that extends the capability of the server.

Java Server Pages:


 (JSP Model 2 Architecture)

This helps software developers create dynamically generated web pages on HTML, XML or other document types.

Tomcat 7 on Ubuntu:


The configuration file is /var/lib/tomcat7/conf/server.xml

Just add address = '127.0.0.1" into the related Connector section as follows:

<Connecter executor = "tomcatThreadPool" address="127.0.0.1" port="8080"
protocol="HTTP/1.1" connectionTimeout-"20000"
maxKeepAliveRequests ="100" proxyPort= "80"/>

"For servers with more than one IP address, this specifies the address which it will be used for listening on the specified port." 

Although this method is easy, it isn't as flexible as using iptables; which it can work on multiple ports and is preferred if you have a complex environment with complicated requirements.

---

Is there more to this discussion that what it is natively? If there is a more deeper understanding on this, please feel free to share in the comments below.

1 comments:

Your work is very simple art of work its really a helpful.

BitSnoop UK proxy

Post a Comment

 
Related Posts Plugin for WordPress, Blogger...