Now, how did I know I was going to get flamed?? :/ Anyway thanks for the example. Some manuals are too hard to read, you have to be a goddamn PhD to read some of them out there to untangle the mess of cross references and incomplete examples. :/
But, with that e.g. that uses an IP address, from day to day I don't know what my IP address will be, can't I use: NameVirtualHost fred.trains.ath.cx <VirtualHost fred> ... foo </VirtualHost> ? Thanks and all. James Stephen Reppucci wrote: > Well, you certainly haven't inconvenience yourself by taking the > time to look at the copious documentation available on this, now > have you? > > That said, here's a snippet of what you want to use: > > NameVirtualHost 192.168.0.10 > <VirtualHost 192.168.0.10> > > ServerName www.logsoft.com > ServerAlias logsoft.com > ServerAlias www2.logsoft.com > > DocumentRoot /var/apache/htdocs > > Options +ExecCGI +Indexes > AddHandler cgi-script .cgi > > > <Location /perl> > SetHandler perl-script > PerlFreshRestart On > PerlHandler Foo:Bar > PerlSetVar SOME_VAR /usr/local/foo > </Location> > > </VirtualHost> > > hth, > <Steve> > > On Sat, 1 Dec 2001, James wrote: > > >> Does anyone have a quick example of setting up a vhost with mod_perl >> enabled please? Also an ordinary cgi-bin, with file extensions .pl and >> .cgi enabled? >> >> Also with a vhost, I can name the host anything I like can't I? For >> example, say my domain is localhost.localdomain but I'm using dyndns to >> make it a hostname, say, trains.ath.cx. I can assign fred.trains.ath.cx >> and john.trains.ath.cx with vhosts, the requests will get piped to my >> main machine which is trains, and the vhost section will take care of >> the rest, knowing which document root to use, right? I don't have to >> mess around with DNS or anything do I to make new subdomains? >> >> Is it: >> >> <virtualhost fred.trains.ath.cx /doc/root> >> Options +Indexes +ExecCGI >> DocumentIndex ??? index.html default.html >> perl-handler # hmm, get mod_perl working in /doc/root/perl >> cgi-bin >> # hmmm, get a cgi-bin happening in /doc/root/cgi-bin >> </virtualhost> >> >> Or something like that? >> >> Many Thanks. >> James >>