Interview
question for Apache web server:
As you know that, Apache
server originally designed for UNIX environments. The apache web server
provides some web features like; Virtual Domain, secure shell (SSL), CGI etc. Now
its versions run under OS/2, Windows and other operating systems.
Now let’s talk about
some interview question related to Apache web server:-
1. How to install
Apache server?
#Yum install httpd* -y
2. How to check the
version of Apache server?
#rpm -qa |grep httpd
3. What is location of Document root for Apache server?
/var/www/html/
4.What is location of
log files for Apache server?
/var/log/httpd
5. what
is the main configuration file of Apache server?
httpd.conf
6. which port apache works on?
Apache works
on two ports. Port 80 use for http and port 443 use for https.
7. Difference between <location> and <directory> sections?
Directory sections refer to file system objects and
Location sections refer to elements in the address bar of the Web Page.
8. What is meaning of “Listen” in
httpd.conf file?
Port number on which to listen for nonsecure (http) transfers.
9.
command for restart apache web server?
#service
httpd restart
10.What is Document Root ?
it is a
location of files which are accessible by clients/hosts.
11. What
is the use of mod_perl module?
mod_perl scripting use for module to allow better Perl
script performance and easy integration with the Web server.
12. If you
have added “loglevel Debug” in httpd.conf file, than what will happen?
It will give you more information in the error log in order to
debug a problem.
13. Can you record all the cookies sent to
your server by clients in Web Server logs?
Yes,
add following lines in httpd.conf file.
CustomLog logs/cookies_in.log “%{UNIQUE_ID}e %{Cookie}i” CustomLog logs/cookies2_in.log “%{UNIQUE_ID}e %{Cookie2}i”
CustomLog logs/cookies_in.log “%{UNIQUE_ID}e %{Cookie}i” CustomLog logs/cookies2_in.log “%{UNIQUE_ID}e %{Cookie2}i”
14. What we can do to find out how people
are reaching your site?
Add the following effectors to your activity log format. %{Ref erer}
15.I want to stop people using my site by
Proxy server. Is it possible?
Yes, it’s
possible, edit httpd.conf file and write this-
<Directory
proxy:http://www.example.com/testfiles>
Order Allow,Deny
Deny from all
Satisfy All
</Directory>
Order Allow,Deny
Deny from all
Satisfy All
</Directory>
No comments:
Post a Comment