Monday 31 August 2015

Apachi Webserver Online Quiz Questions & Answers

21. Apache server works on which ports?
A. http - port 80 only
B. Both http - port 80 and https - port 443
C. https - port 443 only
D. none of these
Ans: B

22. How do you change the default web root?
A. Change the DocumentRoot in httpd.server file.
B. change the DocumentRoot n httpd.admin file.
C. change the DocumentRoot in httpd.root file.
D. change the DocumentRoot in httpd.conf file.
Ans: D

23. What’s the command to stop Apache?
A. apachectl -k exit /etc/init.d/apache2 exit (Linux)
B. apachectl -k run /etcfiit.d/apache2 stop (Linux)
C. apachectl -k interact /etc/init.d/apache2 stop (Linux)
D. apachectl -k stop /etc/init.d/apache2 stop(Linux)
Ans: D

24. Which of the following is true about the Apache HTTP server?
A. can be customised by writing ‘modules’ using the Apache module API
B. is a powerful flexible, HTTP/1.1 compliant web server
C. All of these
D. implements the latest protocols, including KTTP/1.1 (RFC2616)
Ans: C

25. If you specify both deny from all and allow from all, what will be the default action of Apache?
A. Can’t be determined
B. Only allow will be performed.
C. Deny always takes precedence over allow
D. Allow always takes precedence over deny.
Ans: C

26. What’s the command to Restart Apache?
A. apachectl -k restart /etc/init.d/apache2 system
B. apachectl –k restart /etc/init.d/apache2 restart
C. apachectl -k run /etc/init.d/apache2 restartsystem
D. apachectl -k perform /etc/init.d/apache2 restart
Ans: B

27. htpasswd:
A. it creates a new user
B. None of these
C. asks to specify a password for that user
D. Both it creates a new user and asks to specify a password for that user
Ans: D

28. To cause the Web server to work around the NFS locking limitations, include a line such as the following in your server configuration files:
A. None of these
B. Lockfile /var/run/apache-lock
C. SetFile/var/run/apache-access
D. CreateFile /var/run/apache-startup
Ans: B

More Questions & Answers:-
Page1 Page2 Page3

No comments:

Post a Comment