This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
Subject: RE: CGI Question From: "Scott Skrogstad" <scott@coiinc.com> Date: Tue, 1 Aug 2000 13:37:29 -0500 Jake McHenry [mailto:jmchenry@oak.kcsd.k12.pa.us] wrote: > On Tue, 1 Aug 2000, Scott Skrogstad wrote: > > --I have virtual hosts running great on my 6.1 box but now one of my clients > --want to use CGI. How or what do I enable to do this? All of my clients > --files are in /home/vhost/clientname.. > I believe that if your using Apache, you can enable this > in linuxconf, under the apache section. do you know of a manual way of doing it. Linux config seems to mess up my system from time to time === Subject: RE: CGI Question From: "Robert Friberg" <robban@it-konsult.com> Date: Tue, 1 Aug 2000 21:12:47 +0200 Hi, > do you know of a manual way of doing it. Linux config seems to mess up my > system from time to time Edit /etc/httpd/conf/httpd.conf One way is to add a ScriptAlias directive: <VirtualHost 192.168.1.99> Servername www.foo.com DocumentRoot /home/f/foo/htdocs ScriptAlias /home/f/foo/htdocs/cgi-bin </VirtualHost> This allows scripts to be run from the specified directory. === Subject: RE: CGI Question From: Nitebirdz <nitebirdz@uswest.net> Date: Tue, 1 Aug 2000 08:31:49 -0500 (CDT) On Tue, 1 Aug 2000, Scott Skrogstad wrote: > do you know of a manual way of doing it. Linux config seems to mess up my > system from time to time > > Scott Skrogstad > The following online doc gives you the information you're looking for. Basically, you need to add some ScriptAlias directives within each one of the <VirtualHost> stanzas, althugh according to your original message you may only need to do it for one of the virtual hosts... at least for the time being. :-) http://www3.undp.org/rc/areas/tech/web/apachevirt.html === Subject: RE: CGI Question From: Danny <dannyh@idx.com.au> Date: Wed, 02 Aug 2000 10:46:08 +1000 >On Tue, 1 Aug 2000, Scott Skrogstad wrote: > >--I have virtual hosts running great on my 6.1 box but now one of my clients >--want to use CGI. How or what do I enable to do this? All of my clients >--files are in /home/vhost/clientname.. In httpd.conf your virtual settings From memory :- (virutal host looks something like the following ) <VirtualHost> etc etc DocumentRoot /home/httpd/html/domains/whatever/html </VirtualHost> 1)Just create a cgi-bin directory in /home/httpd/html/domains/whatever/ Then in your virtualhost settings type in 2)ScriptAlias /home/httpd/html/domains/whatever/cgi-bin Remember to restart Apache after modifying httpd.conf I believe is /etc/rc.d/init.d/httpd restart ===