APACHE INTERVIEW QUESTIONS AND ANSWERS
PAGE - 1
5..What is mod_perl?
To
start the server, simply run
To
stop Apache send the parent process a TERM signal. The PID of this process is
written to the file
7..What is the main configuration file for Apache?
httpd.conf
8..How to check the Apache
server version?
rpm -qa |grep httpd
9..Write the Apache server supporting ports?
http
– port 80
PAGE - 1
1..What
is apache server?
The Apache HTTP Server,
colloquially called Apache is the world's most used web server software.. Apache played a key role in the initial growth
of the World Wide Web quickly overtaking NCSA HTTPd as the dominant HTTPserver,
and has remained most popular since April 1996. In 2009, it became the first
web server software to serve more than 100 million websites
2..How
to compile apache?
Compiling Apache consists of
three steps: Firstly select which Apache modules you want
to include into the server. Secondly create a configuration for your operating
system. Thirdly compile the executable.
All configuration of
Apache is performed in the src directory of the Apache distribution.
Change into this directory.
1.
Select modules to
compile into Apache in the Configuration file. Uncomment lines
corresponding to those optional modules you wish to include or add new lines corresponding to additional
modules you have downloaded or written.
2.
Configure Apache for
your operating system. Normally you can just type run the Configure script
3.
Type make. The modules we place in the Apache distribution
are the ones we have tested and are used regularly by various members of the Apache
development group.
3..How to check the version of
Apache server ?
rpm -qa
|grep httpd
4..What is mod_ssl?
This module
provides strong cryptography for the Apache 1.3 webserver via the Secure
Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols by
the help of the Open Source SSL/TLS toolkit OpenSSL
5..What is mod_perl?
With mod_perl it is possible to
write Apache modules entirely in Perl. In addition, the persistent interpreter
embedded in the server avoids the overhead of starting an external interpreter
and the penalty of Perl start-up time.
6..How to start and stop the apache server?
To
start the server, simply run httpd
. This will look
for httpd.conf
in the location
compiled into the code (by default /usr/local/apache/conf/httpd.conf
).
To
stop Apache send the parent process a TERM signal. The PID of this process is
written to the file httpd.pid
in the logs
directory (unless configured
otherwise). Do not attempt to kill the child processes because they will be
renewed by the parent. A typical command to stop the server is: kill –TERM `cat /usr/local/apache/logs/httpd.pid`
7..What is the main configuration file for Apache?
httpd.conf
8..How to check the Apache
server version?
rpm -qa |grep httpd
9..Write the Apache server supporting ports?
http
– port 80
https – port 443
10..How
to host more than one web site if you are having only one IP
address?
We can
used name based virtual hosting.
ServerName
10.111.203.25
NameVirtualHost *:80
NameVirtualHost *:80
<VirtualHost
*:80>
ServerName web1.test.com
DocumentRoot /var/www/html/web1
</VirtualHost>
ServerName web1.test.com
DocumentRoot /var/www/html/web1
</VirtualHost>
<VirtualHost
*:80>
ServerName web2.test2.com
DocumentRoot /var/www/html/web2
</VirtualHost>
ServerName web2.test2.com
DocumentRoot /var/www/html/web2
</VirtualHost>
No comments:
Post a Comment