Jason S. on Fri, 6 Aug 1999 11:30:57 -0400 (EDT)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

RE: [Plug] Executing CGI Scripts outside cgi-bin


Virtualhosting is a piece of cake.

Edit httpd.conf
____________________________________________________________________________
NameVirtualHost 10.16.232.10

<VirtualHost 10.16.232.10>
ServerName webdev.something.net
DocumentRoot /home/htdocs/something.net
SetEnv SERVER_URL http://webdev.something.net
PerlPassEnv SERVER_URL
Alias /Internal/ /home/htdocs/Internal/
Alias /timedoc /home/htdocs/timedoc
Alias /pr0n /home/jason/research
Alias /doc	/usr/doc
ScriptAlias /cgi-bin/ /home/htdocs/cgi-bin/
ScriptAlias /sec-cgi/ /home/htdocs/sec-cgi/
ScriptAlias /admin-cgi/ /home/htdocs/admin-cgi/
</VirtualHost>
____________________________________________________________________________


Visit apache.org if you have questions like "How do I...", "Why does...", etc.

Theres also some pretty nifty things you can do with .htaccess files and in
access.conf and srm.conf. Read them, for they are pimpy.

Hope that helps, if you need help feel free to mail me or whatever. Altho...
I'm leaving a little early today to get my tat worked on.

I love fridays :)

J.

When I grow up, I wanna be more like me.
I had a clue. I didn't like it. I took it back and exchanged it for an
attitude.  

On Fri, 6 Aug 1999, Kyle Burton wrote:

> Oh, another thought just occurred to me...you can also do a virtual host
> type setpu with apache, which would also slove things nicely for you.  
> I know it's supposed to be fairly easy to do, but I've never done it, and 
> don't right how to do it.
> 
> if you work though it, would you be willing to share your work with the list?
> 
> k
> 
> ------------------------------------------------------------------------------
> guru, n: A computer owner who can read the manual. 
>     -- Anonymous
> mortis@voicenet.com                            http://www.voicenet.com/~mortis
> ------------------------------------------------------------------------------
> 
> On Fri, 6 Aug 1999, Kyle Burton wrote:
> 
> > You could set up another alias in the conf files, like the existing one
> > for cgi-bin:
> > 
> > ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
> > 
> > add one for your test scripts, with a differnet alias:
> > 
> > ScriptAlias /my-cgi-bin/ /home/mirror/cgi-bin
> > 
> > 
> > then just access it via the my-cgi-bin url.  If you're really doing an
> > entire mirror, including html files that reference back to the cgi
> > programs, then setting up another instance of apache is probably your
> > best bet, as you won't have to muck with the absolute/relative pathing
> > of urls in your html/cgi programs to deal with the differnet locations.
> > 
> > k
> > 
> > ------------------------------------------------------------------------------
> > guru, n: A computer owner who can read the manual. 
> >     -- Anonymous
> > mortis@voicenet.com                            http://www.voicenet.com/~mortis
> > ------------------------------------------------------------------------------
> > 
> > On Fri, 6 Aug 1999, Charles Stack wrote:
> > 
> > > 
> > > 
> > > >whAT eXaCtLy aRE yoU ATTEMpTiNG tO AccOmPliSh?
> > > 
> > > I'm trying to keep our development environment separate from our production
> > > website.  The aim is have our website author build and test the website
> > > under their own directory.  When ready, we will simply copy the development
> > > side over to the production side.  But, I don't want to set up another web
> > > server as this box (unless it really makes sense).  The HTML part is working
> > > just fine, the problem is with CGI/Perl scripts.
> > > 
> > > Ideally, I'd like to keep the ScriptAlias for /cgi-bin/ while having another
> > > called /mirror/cgi-bin/.
> > > 
> > > Is this a little clearer.
> > > 
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > Plug maillist  -  Plug@lists.nothinbut.net
> > > http://lists.nothinbut.net/mail/listinfo/plug
> > > 
> > 
> > 
> > _______________________________________________
> > Plug maillist  -  Plug@lists.nothinbut.net
> > http://lists.nothinbut.net/mail/listinfo/plug
> > 
> 
> 
> _______________________________________________
> Plug maillist  -  Plug@lists.nothinbut.net
> http://lists.nothinbut.net/mail/listinfo/plug
> 


_______________________________________________
Plug maillist  -  Plug@lists.nothinbut.net
http://lists.nothinbut.net/mail/listinfo/plug