Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Setting up CGI in a a VHOST

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


slawrence at seveninteractive

Dec 11, 2001, 1:23 PM

Post #1 of 3 (99 views)
Permalink
Setting up CGI in a a VHOST

I just wanted to get some clarification. I need to set up CGI on our server
and I was wondering if the follwing config would be correct for a vhost.
First I need to say that I am trying to set this up so you can set up CGI in
any folder.

<VirtualHost *.*.*.*>
ServerName server.name
ScriptAlias /cgi-bin/ "/home/html/"
<Directory "/home/html/>
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
(other directives)
</VirtualHost>

Is this correct or am I mistaken?

Thanks,

Sean

---------------------------------------------------------------------
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 [at] httpd
For additional commands, e-mail: users-help [at] httpd


slawrence at seveninteractive

Dec 11, 2001, 1:36 PM

Post #2 of 3 (97 views)
Permalink
RE: Setting up CGI in a a VHOST [In reply to]

No that isn't what I'm really using

So just:
Options ExecCGI
AddHandler server-parsed .cgi

within the vhost and the pages need to be scripted to poinr towards Perl.

-----Original Message-----
From: Joshua Slive [mailto:joshua [at] slive]
Sent: Tuesday, December 11, 2001 2:37 PM
To: users [at] httpd
Subject: RE: Setting up CGI in a a VHOST




> From: Lawrence, Sean [mailto:slawrence [at] seveninteractive]

>
> I just wanted to get some clarification. I need to set up CGI on
> our server
> and I was wondering if the follwing config would be correct for a vhost.
> First I need to say that I am trying to set this up so you can
> set up CGI in
> any folder.
>
> <VirtualHost *.*.*.*>

Uhh, I assume that's not what you are really using.

> ServerName server.name
> ScriptAlias /cgi-bin/ "/home/html/"

I doubt that is what you really want. Did you read the docs on ScriptAlias?
Do you reall want http://yoursite/cgi-bin/file to be mapped to
/home/html/file?
If all you want is to be able to run cgi scripts anywhere in the document
root,
then you don't need the ScriptAlias at all. You just need the Options
directive
and
AddHandler server-parsed .cgi

If that's not what you want, you need to explain what you want in more
detail.

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 [at] httpd
For additional commands, e-mail: users-help [at] httpd

---------------------------------------------------------------------
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 [at] httpd
For additional commands, e-mail: users-help [at] httpd


joshua at slive

Dec 11, 2001, 1:37 PM

Post #3 of 3 (98 views)
Permalink
RE: Setting up CGI in a a VHOST [In reply to]

> From: Lawrence, Sean [mailto:slawrence [at] seveninteractive]

>
> I just wanted to get some clarification. I need to set up CGI on
> our server
> and I was wondering if the follwing config would be correct for a vhost.
> First I need to say that I am trying to set this up so you can
> set up CGI in
> any folder.
>
> <VirtualHost *.*.*.*>

Uhh, I assume that's not what you are really using.

> ServerName server.name
> ScriptAlias /cgi-bin/ "/home/html/"

I doubt that is what you really want. Did you read the docs on ScriptAlias?
Do you reall want http://yoursite/cgi-bin/file to be mapped to
/home/html/file?
If all you want is to be able to run cgi scripts anywhere in the document
root,
then you don't need the ScriptAlias at all. You just need the Options
directive
and
AddHandler server-parsed .cgi

If that's not what you want, you need to explain what you want in more
detail.

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 [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.