You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joseph A Nagy Jr <jo...@charter.net> on 2003/05/30 00:21:27 UTC

[users@httpd] Multiple ScriptAlias'?

Greetings fellow web masters and mistresses.

I have a small dilemma on my hands.

I run multiple sites off my box. In order to conserve diskpace I have 
condensed many of the directories into one (images are under /www/images 
and aliased in each vhost as /images/ /www/images/; sound files are 
under /www/sound and are aliased as /sounds/ /www/sound/; soon all css 
will be under /www/css and aliased /css/ /www/css/; ditto with cgi) 
single directory so there is no need for multiples of the same files 
(such as only one awstats installation with multiple conf files (which 
is supported by awstats)). That brings me to the focus of this question. 
Currently I have an awstats installation under 
/www/cgi-bin/rpgcn/awstats that already contains multiple files (the 
/www/cgi-bin/rpgcn/ also contains a shared guestbook, shopping cart and 
forum (YaBB) for the RPGCN sites[0]). Since I already have 5 sites 
pointing to that one, I was wondering is it possible for two 
scriptaliased directories? I've not had luck with this in the past. 
Since I just want the awstats dir (granted /www/cgi-bin/ will soon be a 
global cgi-bin anyways) available globablly, and the other five sites (I 
run 6 sites, one with four sub-domains (RPGCN))) currently have their 
own CGI-BIN's, how would I go about making /www/cgi-bin/rpgcn/awstats 
available to every site (so I can move conf files there)?

I run Apache 1.3.27 on RedHat Linux 7.2
-- 
Wielder of the mighty +1 LARTsaber of Unsubscribe,
the +3 Clue-by-Four of No Attachments to a Mailing List,
and the -4 Shield of No Spell Checker


---------------------------------------------------------------------
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] Multiple ScriptAlias'?

Posted by Jeff Cohen <su...@gej-it.com>.
You're right... my mistake..
It should be:
    AddHandler cgi-script .cgi .pl

Sorry for that,
Jeff Cohen
Support@GEJ-IT.com
Tel. (416) 917-2324
www.GEJ-IT.com
GEJ-IT Networks!

> -----Original Message-----
> From: Joseph A Nagy Jr [mailto:joseph_a_nagy_jr@charter.net]
> Sent: Friday, May 30, 2003 2:01 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Multiple ScriptAlias'?
> 
> Jeff Cohen wrote:
> > Easily:
> > ScriptAlias /cgi-bin/rpgcn/awstats/ /www/cgi-bin/rpgcn/awstats
> > <Directory /www/cgi-bin/rpgcn/awstats>
> > SetHandler cgi-script .pl .cgi
> > Options -Indexes ExecCGI
> > </Directory>
> >
> > This should be added into the Vhosts that you want it to be available
for,
> > or outside the VHosts containers if you'd like to make it available
globally
> > to all sites being served by your server.
> >
> <snip>
> 
> Unfortunately I get errors on the SetHandler saying that it can only
> take one name. Removing the SetHandler doesn't do me anygood, either.
> 
> I will play with those settings though and see what I can get working.
> 
> 
> --
> Wielder of the mighty +1 LARTsaber of Unsubscribe,
> the +3 Clue-by-Four of No Attachments to a Mailing List,
> and the -4 Shield of No Spell Checker
> 
> 
> ---------------------------------------------------------------------
> 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


---------------------------------------------------------------------
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] Multiple ScriptAlias'?

Posted by Joseph A Nagy Jr <jo...@charter.net>.
Jeff Cohen wrote:
> Easily:
> ScriptAlias /cgi-bin/rpgcn/awstats/ /www/cgi-bin/rpgcn/awstats
> <Directory /www/cgi-bin/rpgcn/awstats>
> SetHandler cgi-script .pl .cgi
> Options -Indexes ExecCGI
> </Directory>
> 
> This should be added into the Vhosts that you want it to be available for,
> or outside the VHosts containers if you'd like to make it available globally
> to all sites being served by your server.
> 
<snip>

Unfortunately I get errors on the SetHandler saying that it can only 
take one name. Removing the SetHandler doesn't do me anygood, either.

I will play with those settings though and see what I can get working.


-- 
Wielder of the mighty +1 LARTsaber of Unsubscribe,
the +3 Clue-by-Four of No Attachments to a Mailing List,
and the -4 Shield of No Spell Checker


---------------------------------------------------------------------
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] Multiple ScriptAlias'?

Posted by Jeff Cohen <su...@gej-it.com>.
Easily:
ScriptAlias /cgi-bin/rpgcn/awstats/ /www/cgi-bin/rpgcn/awstats
<Directory /www/cgi-bin/rpgcn/awstats>
SetHandler cgi-script .pl .cgi
Options -Indexes ExecCGI
</Directory>

This should be added into the Vhosts that you want it to be available for,
or outside the VHosts containers if you'd like to make it available globally
to all sites being served by your server.

All the best,
Jeff Cohen
Support@GEJ-IT.com
Tel. (416) 917-2324
www.GEJ-IT.com
GEJ-IT Networks!

> -----Original Message-----
> From: Joseph A Nagy Jr [mailto:joseph_a_nagy_jr@charter.net]
> Sent: Thursday, May 29, 2003 6:21 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] Multiple ScriptAlias'?
> 
> Greetings fellow web masters and mistresses.
> 
> I have a small dilemma on my hands.
> 
> I run multiple sites off my box. In order to conserve diskpace I have
> condensed many of the directories into one (images are under /www/images
> and aliased in each vhost as /images/ /www/images/; sound files are
> under /www/sound and are aliased as /sounds/ /www/sound/; soon all css
> will be under /www/css and aliased /css/ /www/css/; ditto with cgi)
> single directory so there is no need for multiples of the same files
> (such as only one awstats installation with multiple conf files (which
> is supported by awstats)). That brings me to the focus of this question.
> Currently I have an awstats installation under
> /www/cgi-bin/rpgcn/awstats that already contains multiple files (the
> /www/cgi-bin/rpgcn/ also contains a shared guestbook, shopping cart and
> forum (YaBB) for the RPGCN sites[0]). Since I already have 5 sites
> pointing to that one, I was wondering is it possible for two
> scriptaliased directories? I've not had luck with this in the past.
> Since I just want the awstats dir (granted /www/cgi-bin/ will soon be a
> global cgi-bin anyways) available globablly, and the other five sites (I
> run 6 sites, one with four sub-domains (RPGCN))) currently have their
> own CGI-BIN's, how would I go about making /www/cgi-bin/rpgcn/awstats
> available to every site (so I can move conf files there)?
> 
> I run Apache 1.3.27 on RedHat Linux 7.2
> --
> Wielder of the mighty +1 LARTsaber of Unsubscribe,
> the +3 Clue-by-Four of No Attachments to a Mailing List,
> and the -4 Shield of No Spell Checker


---------------------------------------------------------------------
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