You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Chris Mills <C....@rmcs.cranfield.ac.uk> on 2000/03/01 12:48:18 UTC

other/5825: Mass v-hosting ignores %1 in VirtualScriptAlias

>Number:         5825
>Category:       other
>Synopsis:       Mass v-hosting ignores %1 in VirtualScriptAlias
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Mar 01 03:50:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     C.P.Mills@rmcs.cranfield.ac.uk
>Release:        1.3.9
>Organization:
apache
>Environment:
Linux www-svr2.rmcs.cranfield.ac.uk 2.2.5-15smp #1 SMP Mon Apr 19 22:43:28 EDT 1999 i686 unknown

Compiler egcs-2.91.66
>Description:
I have mass vhosting working well with the following config (extracted from httpd.conf)

<VirtualHost 193.63.247.70>
        VirtualDocumentRoot /home/webs/%1/public_html
</VirtualHost>

I now want to add a script alias to each vhost using VirtualScriptAlias e.g:

<VirtualHost 193.63.247.70>
        VirtualDocumentRoot /home/webs/%1/public_html
        VirtualScriptAlias  /home/webs/%1/cgi-bin
</VirtualHost>

However when trying to run a cgi script on one of the vhosts, I get a 403 Forbidden.

The log file reports:

[Wed Mar  1 12:51:44 2000] [error] [client 193.63.247.66] file permissions deny server execution: /home/webs/cgi-bin/test-cgi

I have confirmed that cgi script and the cgi-bin directory has world execute rights. Notice in the logged error it is missing the %1 directory bit between /home/webs/ and cgi-bin/test-cgi.
>How-To-Repeat:
Configure vhosting as above.

URL's are pointless as you just get a 403 returned.
>Fix:
No!
>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!     ]