Home
You may like this!
21.
You want your Apache server to use /var/mywww as the directory from which to serve your Web site. What Apache configuration option must you set to make this so?
  • A.
    Root /var/mywww/
  • B.
    DocumentRoot /var/mywww/
  • C.
    set root /var/mywww/
  • D.
    Base=/var/www
  • Answer & Explanation
  • Report
Answer : [B]
Explanation :
The DocumentRoot directive sets the directory in which Apache looks for files to serve, by default. (Other commands set the roots for virtual domain hosting and for users'sites.) The Root directive of option A is fictitious. Apache does not use a set keyword, so option C is incorrect; and it doesn't use an equal sign ( = ), so option D is incorrect. (Both these options also specify incorrect directive names.)
Report
Name Email  
22.
What type of information about HTTP transfers can you recover from an Apache server's log files? (Select all that apply.)
  • A.
    The IP address or hostname of the client computer
  • B.
    The name of the browser claimed by the client
  • C.
    The route of network packets during the transfer
  • D.
    The size of the client's Web browser window
  • Answer & Explanation
  • Report
Answer : [A, B]
Explanation :
The Apache server's logs include the IP address or hostname of the client as well as an identification string provided by the client, which identifies the client program and platform. (This string is not entirely reliable, though.) Thus, options A and B are both correct. Packet routes (option C) are not normally included in this data, but you could apply traceroute to the IP address or hostname if you need this data. Web browsers'window sizes (option D) are not normally logged by Apache.
Report
Name Email  
23.
You've made extensive changes to your Apache configuration files, and you want to check for egregious errors before you restart the server. What command might you type to do so?
  • A.
    apachectl testconfig
  • B.
    apache2ctl teststat
  • C.
    apachectl configstatus
  • D.
    apache2ctl configtest
  • Answer & Explanation
  • Report
Answer : [D]
Explanation :
The apachectl or apache2ctl program (both names usually work, but sometimes only one is valid) can manage the Apache server process, report on connections, and test the configuration file for correct syntax. To do this last, pass it the configtest parameter, as in option D. The parameters specified in the remaining options are all fictitious.
Report
Name Email  
24.
You want to modify some Apache settings for a single directory in your Web site's directory tree. You enter the relevant changes in a file and save that file in the relevant directory. What name should you give this file?
  • A.
    .apache
  • B.
    .httpd
  • C.
    .htaccess
  • D.
    .apache - config
  • Answer & Explanation
  • Report
Answer : [C]
Explanation :
The .htaccess file is a configuration file for a single directory in a Web site's directory tree, so option C is correct. Although Apache's main configuration file is normally called apache.conf or httpd.conf , neither option A nor B is correct for the single - directory configuration file described. Option D is entirely fictitious.
Report
Name Email  
25.
What program can you use to add users to a database of authorized users when you configure Apache to require authentication?
  • A.
    passdb
  • B.
    htaccess
  • C.
    apacheadd
  • D.
    htpasswd
  • Answer & Explanation
  • Report
Answer : [D]
Explanation :
The htpasswd program (option D) manages Apache's own password database. Options A, B, and C are all fictitious, although the .htaccess file can be used to set options for an individual directory.
Report
Name Email