You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Morris Duane-rat924 <du...@motorola.com> on 2003/04/22 18:07:02 UTC

[users@httpd] Alternate cgi-bin

I have the public_html version working and the standard apache location working, but cannot get a virtual host cgi-bin working.  Still keeps looking in /usr/local/apache/cgi-bin instead of virtual site.  Must be missing something simple.

<IfModule mod_userdir.c>
    UserDir public_html
</IfModule>

<Directory /home/*/public_html/cgi-bin>
        Options +ExecCGI
</Directory>

<Directory /usr/local/apache/htdocs-ncsdtest/cgi-bin>
        Options +ExecCGI
</Directory>

<Directory /usr/local/apache/cgi-bin>
        Options +ExecCGI
</Directory>

Thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Duane L. Morris

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Alternate cgi-bin

Posted by "Jack L. Stone" <ja...@sage-one.net>.
At 11:39 AM 4.22.2003 -0700, Thomas Strike wrote:
>I'm running into a similar problem with the Alias command in <VirtualHost>.
>I am under the impression that any directives given within a <VirtualHost>
>container will supersede directives given outside this container.  If I have
>the 'Alias /cgi-bin/ /var/www/cgi-bin/' in the main body of httpd.conf and
>then put 'Alias /cgi-bin/ /var/www/some_other_cgi-bin/' within a
><VirtualHost> container, the latter will supersede the default statement
>earlier in the .conf file.
>
>My problem is that I can't get Alias statements within my <VirtualHost>
>containers to work.
>
>Tom S.
>

Instead of "Alias /cgi-bin/" I believe that should be "ScriptAlias" unless
you just made a typo in this message....

Best regards,
Jack L. Stone,
Administrator

SageOne Net
http://www.sage-one.net
jackstone@sage-one.net

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Alternate cgi-bin

Posted by Thomas Strike <st...@pacbell.net>.
I'm running into a similar problem with the Alias command in <VirtualHost>.
I am under the impression that any directives given within a <VirtualHost>
container will supersede directives given outside this container.  If I have
the 'Alias /cgi-bin/ /var/www/cgi-bin/' in the main body of httpd.conf and
then put 'Alias /cgi-bin/ /var/www/some_other_cgi-bin/' within a
<VirtualHost> container, the latter will supersede the default statement
earlier in the .conf file.

My problem is that I can't get Alias statements within my <VirtualHost>
containers to work.

Tom S.

----- Original Message -----
From: "Joshua Slive" <jo...@slive.ca>
To: <us...@httpd.apache.org>
Sent: Tuesday, April 22, 2003 9:10 AM
Subject: Re: [users@httpd] Alternate cgi-bin


>
> On Tue, 22 Apr 2003, Morris Duane-rat924 wrote:
>
> > I have the public_html version working and the standard apache location
working, but cannot get a virtual host cgi-bin working.  Still keeps looking
in /usr/local/apache/cgi-bin instead of virtual site.  Must be missing
something simple.
> >
>
> You can't have two different directories called /cgi-bin.  How is apache
> supposed to know which to use?  Either remove the global one, or give a
> different name to the alternate cgi-bin.
>
> Joshua.
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Alternate cgi-bin

Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 22 Apr 2003, Morris Duane-rat924 wrote:

> I have the public_html version working and the standard apache location working, but cannot get a virtual host cgi-bin working.  Still keeps looking in /usr/local/apache/cgi-bin instead of virtual site.  Must be missing something simple.
>

You can't have two different directories called /cgi-bin.  How is apache
supposed to know which to use?  Either remove the global one, or give a
different name to the alternate cgi-bin.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org