[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apache - Options in <VirtualHost> ...




Hi everybody,

I want to have the Indexes options in my virtual hosts, it works well with the config below :

<VirtualHost 1.2.3.4>
DocumentRoot /var/www/htdocs/www.domain.com
ServerName www.domain.com
<Directory "/var/www/htdocs/www.domain.com">
        Options Indexes
</Directory>
</VirtualHost>

To simplify, I want to put Options directly inside <VirtualHost>, since I read from http://httpd.apache.org/docs/mod/core.html#options that the Option's context contains virtual host, but it doesn't work.

<VirtualHost 1.2.3.4>
DocumentRoot /var/www/htdocs/www.domain.com
ServerName www.domain.com
Options Indexes
</VirtualHost>

Does someone know why ?

Thanks in advance,

@+
--
DouRiX
["The ability to quote is a serviceable substitute for wit." -- Maugham]




Reply to: