Samba Apache Flashcards
For every virutal host on an apache server you need to create a configuration file in the directory /etc/apache2/vhosts.d
A) True
B) False
A) True
Which is true of the following directive:
AddHandler cgi-script cgi, pl, exe
A) It instructs the server to only execute files in the cgi-scripts directory.
B) It instructs the server to execute any file with the extension .cgi or .pl or .exe as a cgi script.
C) It allows cgi scripts to be interpreted by TomKat
D) Causes the server to handle any errors as an executable
B) It instructs the server to execute any file with the extension .cgi or .pl or .exe as a cgi script.
The URL http://109.14.2.15/~agreen/interest.html is entered in the Firefox browser and a web page is displayed. Which of the following directives allows for this URL to "work". A) DocumentRoot /srv/www/htdocs B) Options +Include Home C) UserDir publc_html D) vhost.d interest.html
C) UserDir publc_html
Which of the following would create a file (username and password) for user authentication.
A) ln -s htpasswd2 passwd
B) htpasswd2 -r user tux
C) useradd htpasswd /etc/apache2/htpasswd tux
D) htpasswd2 -c /etc/apache2/htpasswd geeko
D) htpasswd2 -c /etc/apache2/htpasswd geeko
The virtual host template could be found in \_\_\_\_\_\_\_\_\_\_\_. A) /home/geeko/public_html B) /etc/apache2/php.ini C) /etc/apache2/vhosts.d D) /etc/vhosts/templates
C) /etc/apache2/vhosts.d
Which of the following Directory blocks would allow for Server Side Includes?
A)
Options +Includes
B)
Options FollowSysLinkx
C)
Allow, Deny
Allow from Includes
D) None of the above
A)
Options +Includes
This configuration file is used to specify the IP addresses and TCP/IP ports Apache is listening to. A) uid.conf B) vhost.d C) listen.conf D) default-server.conf
C) listen.conf
The text below is an example of a: GET /simple.html HTTP/1.0 User-Agent: Mozilla/4.5 [en] (X11; SunOS 5.5.1 sun4m) Accept: image/gif, image/x-xbitmap, image jpeg, */* A) Request from a browser B) Request from the server C) ping packet D) none of the above
A) Request from a browser
The text below is a \_\_\_\_\_\_\_ HTTP/1.1 200 OK Date: Mon, 05 Jan 2010 00:33:10 GMT Server: Apache/1.3.1 (Unix) Last-Modified: Tues, 20 Dec 2009 21:00;32 GMT Content-Length: 60 Content-Type: text/html
Welcome to the Website of …..
A) Response from a browser
B) Response from a server
C) Request from a browser
D) none of the above
B) Response from a server
Which of the following is not an Apache configuration file. A) httpd.conf B) default-server.conf C) vhost.d D) bashrc
D) bashrc
Reference http://httpd.apache.org/docs/2.2/mod/core.html for this question.
The ServerRoot directive:
A) Instructs the server where passwords are stored
B) is the directive that identifies where the password file is
C) sets the directory in which the server lives. Typically it will contain the subdirectories conf/ and logs/
D) the directory that is set aside for user information that the server can access when an https request is received.
C) sets the directory in which the server lives. Typically it will contain the subdirectories conf/ and logs/
Which of the following best describes the DocumentRoot?
A) A standard that is used to define programs that interface with a Web server
B) A directory that stores HTTP content on a Web server
C) A directive that identifies the location of a file where users passwords are stored
D) Apart of the TCP/IP suite that is used for Internet file transfer
B) A directory that stores HTTP content on a Web server
\_\_\_\_\_\_\_\_\_\_ allows you to create an alias to a directory containing scripts for dynamic content generation. A) ScriptAlias B) insserv C) inetd D) DocumentRoot
A) ScriptAlias
The command \_\_\_\_\_\_\_ would start the web server at boot time. A) rcapache2 start B) rcapache2 start all C) insserv apache2 D) apache 10.0.0.0
C) insserv apache2
The default path of the DocumentRoot provided by apache2 is \_\_\_\_\_\_\_\_\_\_\_\_ A) /srv/www/htdocs B) /srv/www/cgi-bin C) /srv/ftp D) /srv/www/cgi-bin
A) /srv/www/htdocs