CODE
[...]
DocumentRoot "C:/Server/Freigabe"
ScriptAlias /cgi-bin/ "C:/Server/Freigabe/cgi-bin/"
ServerRoot "C:/Server/Programme/HTTP"
<Directory />
Options FollowSymLinks Includes
AllowOverride None
AddOutputFilterByType DEFLATE text/html text/plain text/css
Header append Vary User-Agent
</Directory>
<Directory "C:/Server/Freigabe">
Options FollowSymLinks Includes
AllowOverride All
AddOutputFilterByType DEFLATE text/html text/plain text/css
Header append Vary User-Agent
</Directory>
<Directory "C:/Server/Freigabe/cgi-bin">
AllowOverride None
Options ExecCGI
AddOutputFilterByType DEFLATE text/html text/plain text/css
Header append Vary User-Agent
</Directory>
[...]
DocumentRoot "C:/Server/Freigabe"
ScriptAlias /cgi-bin/ "C:/Server/Freigabe/cgi-bin/"
ServerRoot "C:/Server/Programme/HTTP"
<Directory />
Options FollowSymLinks Includes
AllowOverride None
AddOutputFilterByType DEFLATE text/html text/plain text/css
Header append Vary User-Agent
</Directory>
<Directory "C:/Server/Freigabe">
Options FollowSymLinks Includes
AllowOverride All
AddOutputFilterByType DEFLATE text/html text/plain text/css
Header append Vary User-Agent
</Directory>
<Directory "C:/Server/Freigabe/cgi-bin">
AllowOverride None
Options ExecCGI
AddOutputFilterByType DEFLATE text/html text/plain text/css
Header append Vary User-Agent
</Directory>
[...]
The first <Directory> directive, the root, does it refer to the document root or the server root? If it's the directory root, doesn't this mean that I can remove the entire second <Directory> directive?
Also, do subdirectories inherit the options from their parents? For example, if I use "Header append Vary User-Agent" in "/" or "C:/Server/Freigabe", do I also have to specify it in "C:/Server/Freigabe/cgi-bin"?