Free Articles and Tutorials: Apache HTTP Server
This page contains a listing of free articles and tutorials.
Apache HTTP Server
Here we provide a list of free articles and tutorials of tips and tricks that will make you more effective with Apache Web Server.
How to Check the Status of the Apache Tomcat Server (Linux)
Monitoring the JVM is an important part of administering the Apache Tomcat server. The Tomcat manager provides a quick way to check our server's status by displaying how many HTTP threads are active, the storage allocation in the various memory pools plus other helpful data.
How to Check the Status of the Apache Tomcat Server (Windows)
Monitoring the JVM is an important part of administering the Apache Tomcat server. The Tomcat manager provides a quick way to check our server's status by displaying how many HTTP threads are active, the storage allocation in the various memory pools plus other helpful data.
How to Cluster in Apache Tomcat (Linux)
In a production Tomcat environment, you might have hundreds of web requests per second on a routine basis. With so much volume assaulting your Tomcat server, you'll probably discover that memory resources in one Tomcat JVM (Java Virtual Machine) can become overwhelmed. To help prevent this situation from becoming reality you can place two or more Tomcat servers in a cluster.
How to Cluster in Apache Tomcat (Windows)
In a Tomcat production environment, you might have hundreds of web requests per second on a routine basis. With so much volume assaulting your Tomcat server, you'll probably discover that memory resources in one Tomcat JVM (Java Virtual Machine) can become overwhelmed. To help prevent this situation from becoming reality you can place two or more Tomcat servers in a cluster.
How to Configure Apache Tomcat to Use MBeans (Windows)
Java Management Extensions (JMX) is a technology that permits applications to expose properties and operations through managed beans, or "MBeans". Tomcat supports JMX and provides numerous MBeans to a consumer program, such as jconsole
, that expose useful properties and operations. But in order to access Tomcat's MBeans we must configure Tomcat to expose the MBeans to consumers.
How to Deploy a WAR File to Apache Tomcat (Linux)
Deploying a web application to Apache Tomcat is very straightforward using a WAR (Web ARchive) file. By deploying we mean that we are placing a zipped web application in a location on the file system where Tomcat can make the web page(s) available to the world.
How to Deploy a WAR File to Apache Tomcat (Windows)
Deploying a web application to Apache Tomcat is very straightforward using a WAR (Web ARchive) file. By deploying we mean that we are placing a zipped web application in a location on the file system where Tomcat can make the web page(s) available to the world.
How to Deploy a Web Application Using the Apache Tomcat Manager (Linux)
To deploy a web application to Apache Tomcat you can copy a WAR file to the application base directory, e.g., /var/lib/tomcat7/webapps
. This operation of course presupposes we know the application base directory. We could consult server.xml
and look up the Host
element to determine the directory name. A more straightforward approach is to use the Tomcat manager web application.
How to Establish a JDBC Connection in Apache Tomcat (Windows)
Business web applications rely on databases. Therefore, you will probably be required to make a connection to your relational database during the development of a web application. Java accesses relational databases through JDBC (Java Database Connectivity). As of JDBC 2, the database is represented to Tomcat as a data source. In this topic I will discuss establishing a JDBC connection to a MySQL data source in Tomcat.
How to Install and Configure Apache Tomcat (Windows)
Apache Tomcat can be installed and configured for first time use in a straightforward way.
How to List Deployed Applications Using the Apache Tomcat Manager (Windows)
The Apache Tomcat manager web application provides a convenient interface that lists deployed web applications.
How to Run a JSP Program in Apache Tomcat (Linux)
A Java Server Page, or JSP, program is a crucial part of a Java web application because the JSP will send a response back to the server in the form of a web page. For example, a JSP might display the line items of an order to the browser user. In this topic, you will create a very simple JSP and learn how to run the program at the Tomcat server.
How to Run a JSP Program in Apache Tomcat (Windows)
A Java Server Page, or JSP, program is a crucial part of a Java web application because the JSP will send a response back to the server in the form of a web page. For example, a JSP might display the line items of an order to the browser user. In this topic, you will create a very simple JSP and learn how to run the program at the Tomcat server.
How to Run Multiple Instances of Apache Tomcat on One Server (Windows)
In another topic, I discussed how to start one member of a Tomcat cluster. Click here to learn how to cluster in Apache Tomcat (Windows). When you have completed the work in that topic, you will be prepared for this topic. I will show you how to run another Tomcat instance on the same server, or computer.
How to Set Default Context Path in Apache Tomcat (Linux)
A context path in Apache Tomcat refers to the name of the website as presented by the browser. For example, imagine I tell you to enter "localhost:8080/DemoWebsite/DateJSP.jsp" in your browser. The context path is "DemoWebsite". The term "context" in Tomcat is in fact synonymous with "website". The default context path can be specified if we provide a context file to Tomcat that is given the same name as the website. In this topic, you will learn how to accomplish this important task.
How to Set Default Context Path in Apache Tomcat (Windows)
A context path in Apache Tomcat refers to the name of the website as presented by the browser. For example, imagine I tell you to enter "localhost:8080/DemoWebsite/DateJSP.jsp" in your browser. The context path is "DemoWebsite". The term "context" in Tomcat is in fact synonymous with "website". The default context path can be specified if we provide a context file to Tomcat that is given the same name as the website. In this topic, you will learn how to accomplish this important task.
How to Start and Stop Apache Tomcat from the Command Line (Linux)
Apache Tomcat can be started and stopped from the command line. In this topic I will show you how to start and stop Tomcat from the command line in Ubuntu, which is a Linux distribution derived from Debian.
How to Start and Stop Apache Tomcat from the Command Line (Windows)
Learn how to start and stop Apache Tomcat from the command line in a Windows environment.
How to Undeploy Web Applications Using the Apache Tomcat Manager (Windows)
One important function of the Apache Tomcat manager web application is to undeploy web applications. In other words, the website will be removed from Tomcat and therefore no longer be available on the World Wide Web.
How to Use the autoDeploy Attribute in Apache Tomcat (Windows)
When we copy a WAR file to the application base directory of Apache Tomcat, we usually expect the web application to be deployed. In other words, we expect the website to be immediately available on the World Wide Web. However, this doesn't always have to be the case. The autoDeply
attribute on the Host
element determines if the web application will be available for access on the internet.
How to Use the Java Logging API in Apache Tomcat (Linux)
Developers and administrators alike will refer to Apache Tomcat logs from time for diagnostic and performance data. Tomcat uses a customized
implementation of java.util.logging
called JULI (Java Utility Logging Implementation). JULI is very similar to standard Java SE logging, even
supporting the same configuration file, logging.properties
. In this topic, we'll explore a way to route the Catalina logs to a specific destination and then check out the log contents.
How to Use the Java Logging API in Apache Tomcat (Windows)
Developers and administrators alike will refer to Apache Tomcat logs from time for diagnostic and performance data. Tomcat uses a customized
implementation of java.util.logging
called JULI (Java Utility Logging Implementation). JULI is very similar to standard Java SE logging, even
supporting the same configuration file, logging.properties
. In this topic, we'll explore a way to route
the Catalina logs to a specific destination and then check out the log contents.
How to Verify Apache Tomcat Server Operation (Windows)
After you have started the Apache Tomcat server, a logical question to ask would be: "How do I verify the Tomcat server is operational?" In this topic we will find out!