You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Trev Jenkinson <tr...@awe.bc.ca> on 2000/12/30 23:04:24 UTC

config/7023: Options directive in VirtualHost ignored

>Number:         7023
>Category:       config
>Synopsis:       Options directive in VirtualHost ignored
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sat Dec 30 14:10:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     trev@awe.bc.ca
>Release:        1.3.14 + mod_ssl
>Organization:
apache
>Environment:
Red Hat Linux release 7.0 (Guinness)
Kernel 2.2.16-22 on an i686 (not using the RedHat Apache RPM)
>Description:
The "Options" directive is being ignored in a named VirtualHost container,
and the options defined for "/" in the main server config are used instead.
This used to work fine in my previous Apache installation (1.3.3)
>How-To-Repeat:
I am building a new server on my local network, so no URL is available.
Quite simply set Options to something that differs from the main <Directory />
container.  Eg:

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
.
.
.
NameVirtualHost 192.168.1.10
<VirtualHost 192.168.1.10>
        DocumentRoot /home/staff/trev/public_html
        ServerName TT5.lan
        Options +ExecCGI Includes
</VirtualHost>

Then try to run a CGI or SSI from that virtualhost.  Naturally, you'll have
to substitute something real in place of my local network addresses & names.
>Fix:
Fix it? No...  Workaround?  Yes:  Use a <Directory> container:

<Directory /home/staff/trev/public_html>
        Options +ExecCGI +Includes
</Directory>

I just wanna be lazy and type less ;-)
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]