Tomcat Server Interview Questions
(1) Tomcat server is which type of server?
webserver
(2) In which folder we deploy our web application?
in web-apps folder
(3) What is the default port number of tomcat?
8080
(4) Who developed the tomcat?
Apache
(5) How we start the tomcat server?
By startup.bat
(6) How we stop the tomcat server?
With the help of shutdown.bat.
(7) How can we change the default port number of the tomcat server?
(8) Mention the configuration files of Catalina.
The configurations files of Catalina include:
XML
Properties
Policy
Tomcat-users.xml
(9) What are the vital benefits of Running Tomcat as a service?
The benefits of Running Tomcat as a service are:
1) Automatic Startup – If the tomcat window service starts up automatically then it would be helpful when we want to start the system remotely.
2) Security – It allows you to execute under a special account that is protected from the other accounts.
3) Starting off the server without active user login: So even if there is no active user, the available server can be started.
(10) What is the deployment process of web applications using the WAR file?
There is a Web apps directory in Tomcat under which all the web components JSP, Servlets, HTML are placed. Hereby putting all the files into a single folder we can compress the files into a single unit which has .WAR extension.
Now, we can easily deploy the web application by putting the WAR file in the Web apps directory. And, when the server starts it extracts all the web components.
(11) What are the configured Tomcat Valve’s?
There are basically four configured Tomcat Valves which are mentioned below:
Access Log
Remote Host Filter
Remote Address filter
Request Dumper
(12) What do you mean by Tomcat Coyote and what is its use?
Tomcat Coyote is basically an HTTP connector based on HTTP/ 1.1 configuration which accepts and sends the web request to the Tomcat engine and again reverts to the client which makes the request.
(13) What are the different ways in which we can secure the websites hosted on Tomcat Server?
There are multiple ways to do it and some of them are mentioned below:
Implementing SSL
Make use of a Cloud-based security provider.
Integrating with Web Application Firewall.
(14) What is the check or log extent provided by Apache Tomcat?
There are plenty of check levels provided and out of which “warn” is the default level.
Info
Debug
Warn
Notice
Crit
Alarm
Emerg
Error
(15) How is Apache Tomcat different from Apache Web Server?
Apache Tomcat is used to host the web contents whereas Apache Web server is an HTTP server that is built to serve the static contents.
There is always a possibility to integrate Apache Tomcat and Apache Web Server.
(16) Apart from Apache Tomcat, what are the different kinds of Web Servers?
LiteSpeed Web Server
GWS Web Server
Microsoft IIS Web Server
Nginx Web Server
Jigsaw Web Server
Sun Java System Web Server
Lighttpd Web Server
(17) What will happen if we have added “logLevel Debug” in httpd. conf file?
Adding the logLevel Debug provides you with more information in the error log in order to debug an issue.
(18) Is it possible to capture the MAC address of the clients who are using your server?
No, it will not be possible to capture the MAC address of the clients who are using your server.
(19) How can we put a restriction to upload files on our web server?
Yes, we can restrict the user to upload files on our web server by using the “LimitRequestBody” directive.
(20) Apache runs as which user and what is the location of the main configuration file?
Apache runs with a user “nobody” and httpd daemon.
The location of the main configuration file is:
# /etc/httpd/conf/httpd.conf
# /etcapache2.conf
No comments:
Post a Comment