4 avg. rating (80% score) - 5879 votes
Want to excel and grow your carrier in the Apache Webserver (Level 2)? Then we will provide you with the full detailed amount of Apache Webserver (Level 2) Interview Questions and Answers on our page. Apache is the most widely used web server software. Developed and maintained by Apache Software Foundation, Apache is an open source software available for free. It runs on 67% of all webservers in the world. It is fast, reliable, and secure. Apache Webserver(level 2) jobs are available in many companies. Top companies are hiring Apache Webserver(level 2) for roles for various positions. The Various role are Jboss Middleware Technical Consultant, Application Support Engineer, Web front end(wfe) administrator and many more. For more details feel free to visit our site wisdomjobs.com.
You can restart by going to Apache instance location >> bin folder and execute apachectl script.
You may also use script located in /etc/init.d/. Mostly it will be named either “apache” or “httpd”
Another procedure would be using services
service httpd start
The default port for HTTP is 80 and HTTPS 443. Checkout default ports for other applications listed here.
httpd.conf is the main configuration file used in Apache.
There is multiple ways to find this but more accurately would be;
[root@lab sbin]# ./httpd -v
Server version: Apache/2.2.15 (Unix)
Server built: Jul 18 2016 15:24:00
Alternatively, you can also use the rpm command to check the installed version:
[root@lab ~]# rpm -qa |grep httpd
There are multiple ways to find this.
ps -ef |grep httpd
netstat -anlp |grep 80
There are three possible ways to get this installed.
Using source code – you can download the source and compile it.
YUM repository – if your server is connected to the Internet or have internal repository then you can use yum to install it.
yum install httpd
RPM – You can download the necessary RPM package and use rpm command.
rpm -ivh packagename.rpm
This is often needed when you have multiple IPs on the server. In order to ensure Apache listen only on specified IP then you need to explicitly mention IP and port in Listen directive.
This is doable by adding User & Group directive in httpd.conf file
Above configuration example will ensure it starts with “apache” user. You must ensure user exist on the server before configuring it.
You can use “Options -Indexes” in respective directory directive.
mod_rewrite is responsible for the redirection and this must be uncommented in httpd.conf file.
LoadModule rewrite_module modules/mod_rewrite.so
Yes, it’s possible by specifying the port number in Listen directive.
For ex: to make Apache listen on 9000 port to 10.10.10.10 IP address.
There are multiple ways to secure the Apache web server including the following.
There are two popular log files created;
access.log – all request details with the status code.
error.log – capture all the errors within apache or connecting in backend.
You can either use the following OpenSSL command or generate CSR online.
To create new CSR with private key
openssl req -out geekflare.csr -newkey rsa:2048 -nodes -keyout geekflare.key
Check out OpenSSL cheat sheet for more commands.
Virtual Hosting in Apache allows you to host multiple websites on a single instance. You can either create IP based or Name based in virtual hosting.
mod_was_ap22_http.so must be added in httpd.conf file to integrate with IBM WAS.
Often needed when you are troubleshooting the issue and wish to capture more details. You can change the logging level to debug by ensuring the following in httpd.conf file.
The mod_ssl module must be uncommented prior to SSL implementation.
LoadModule auth_basic_module modules/mod_ssl.so
The default configuration is set to “warn” however, the following is possible too.
DocumentRoot directive is the configuration where you can specify the folder location from where the static files will be served. It’s also called as Web Root.
Default DocumentRoot location is /var/www/html
I am afraid, Apache is a Web Server and Java based application deployment is not possible with it. However, you can integrate Java application server like WebLogic, WebSphere, JBoss where you can deploy war, ear files.
Apache Web is HTTP server to serve static contents where Tomcat is servlet container to deploy JSP files.
You can always integrate Apache HTTP with Tomcat, however, based on the requirement you need to choose either one. If you need proper web server then Apache HTTP else Tomcat for JSP-Servlet Container.
You can use a mod_proxy module to use as a proxy server. The mod_proxy module can be used to connect to the backend server like Tomcat, WebLogic, WebSphere, etc.
You got to speak the truth but to given you an idea you can use GoAccess, SumoLogic or few mentioned here.
Again, you better tell the truth but to make you aware there are many web servers in the market including the following.
httpd –t will help you to verify the syntax.
[root@lab httpd]# /usr/sbin/httpd -t
Alternatively, you may use apachectl command as well.
[root@lab ~]# /usr/sbin/apachectl configtest
You can use a tool like ApacheBench, SIEGE to perform the load test on web servers including Apache. Another option to perform stress test online to see the overall how web application performs under load.
Apache is an Open Source web server so there is no enterprise level support however, you can raise a bug report or ask a question on Stack Overflow.
If running Linux, then you can put a script in /etc/init.d/ and enable to start on boot using chkconfig command
Let’s say you create a file called apache and put under /etc/init.d
chkconfig --add apache
chkconfig apache on
if on Windows, then ensure startup type is selected “Automatic”
Both are categorized as a Web Server and here are some of the main differences.
If running on Linux, then can use kill command.
Find out the PID of Apache by using ps -ef |grep http
Then kill it
if normal kill doesn’t work then try kill -9
kill -9 $PIDNUMBER
if on Windows, then end the apache task from Task Manager.
In Linux, you can use find command.
Let’s assume, you know it must be in /apps file system then you can use the following command.
find /apps -name httpd.conf
But if you are not sure on which file system then you can do find on / file system but keep it in mind it may take a long time based on the overall file system size.
find / -name httpd.conf
IBM HTTP Server – known as IHS and often used with IBM WebSphere Application Server
Oracle HTTP Server- known as OHS often used with Oracle Weblogic server
You can explain based on your experience, however, typically for Internet-facing applications it would be in Internet DMZ network and for intranet, core network.
But again this will differ based on application/organization.
Add the following in httpd.conf file and restart the web server
This will hide the version and show Server as “Apache” Only.
Add the following in httpd.conf file and restart the instance
netstat would be useful to troubleshoot the port conflict issue. If running multiple instances on a single server then it would be recommended to have absolute IP:Port configured in Listen directive.
Apache Webserver (Level 2) Related Tutorials
|Apache Tapestry Tutorial||Apache Cassandra Tutorial|
|Apache Solr Tutorial||Apache Storm Tutorial|
|Apache Hive Tutorial||Apache Pig Tutorial|
|Apache Flume Tutorial||Apache Kafka Tutorial|
|Apache Ant Tutorial||Apache Tajo Tutorial|
|Apache Impala Tutorial||Apache Presto Tutorial|
|Apache POI PPT Tutorial||Apache Struts 2 Tutorial|
Apache Webserver (Level 2) Related Interview Questions
|Apache Tapestry Interview Questions||Apache Cassandra Interview Questions|
|Apache Spark Interview Questions||Apache Solr Interview Questions|
|Apache Storm Interview Questions||Apache Hive Interview Questions|
|Apache Pig Interview Questions||Apache Flume Interview Questions|
|Apache Kafka Interview Questions||Apache Ant Interview Questions|
|Apache Camel Interview Questions||Apache Tajo Interview Questions|
|Apache Impala Interview Questions||Apache Drill Interview Questions|
|Apache Presto Interview Questions||Apache POI PPT Interview Questions|
|Apache Struts 2 Interview Questions||Apache Ambari Interview Questions|
Apache Webserver (Level 2) Related Practice Tests
|Apache HBase Practice Tests|
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.