here's what i think you want: ServerAdmin sspalding@groupwise ScriptAlias /cgi-bin/ "/home/tss/cgi-bin/" DocumentRoot /home/tss/htdocs # index.html goes here ServerName tssdev.xx ErrorLog /home/tss/logs/tss.error TransferLog /home/tss/logs/tss.access
this way your cgi bin will be in /home/tss/cgi-bin/ but will look like this in the browser: http://tssdev.xx/cgi-bin/ and your index.html file will be here: /home/tss/index.html but it'll look like this in the browser: http://tssdev.xx/index.html _________________________________ daniel a. g. quinn starving programmer the reasonable man adapts himself to the world; the unreasonable man persists in trying to adapt the world to himself. therefore, all progress depends on the unreasonable man. - george bernard shaw ----- Original Message ----- From: "Stephen Spalding" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 09, 2002 1:05 PM Subject: Re: virtual hosting problem > > What should I have my document root set to and where should I put my index file? I still want it to be a cgi script and I want it grouped with all of the other cgi scripts. > Mike Burger <[EMAIL PROTECTED]> wrote: Yup...the problem is that you have the document root at /home/tss/cgi-bin, > to start with...adding the ScriptAlias line makes Apache think that the > cgi-bin directory for that will have a URL of /home/tss/cgi-bin/tss/cgi-bin. > > On Mon, 8 Apr 2002, Stephen Spalding wrote: > > > > > Hello all, > > > > I'm trying to set up an apache virtual host, and I'm almost there. I've got a host name pointing to a URL which seems to be working just fine, but the problem is that it's a cgi script and my browser is not executing it, it's displaying the code. Here's what the code of the cgi script: > > > > # cat main_page.pl > > > > > > #!/usr/bin/perl > > print "Content-type: text/html\n\n"; > > print "Hello! > \n"; > > > > Here's my VirtualHost directive in /etc/httpd/conf/httpd.conf: > > > > > > ServerAdmin sspalding@groupwise > > ScriptAlias /tss/cgi-bin/ "/home/tss/cgi-bin/" > > DocumentRoot /home/tss/cgi-bin > > ServerName tssdev > > ErrorLog /home/tss/logs/tss.error > > TransferLog /home/tss/logs/tss.access > > > > Options +ExecCGI indexes > > AllowOverride None > > DirectoryIndex main_page.pl > > order allow,deny > > allow from all > > > > > > > > Any ideas? > > > > Thanks! > > > > -Stephen Spalding > > > > > > > > --------------------------------- > > Do You Yahoo!? > > Yahoo! Tax Center - online filing with TurboTax > > > > _______________________________________________ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > > > --------------------------------- > Do You Yahoo!? > Yahoo! Tax Center - online filing with TurboTax _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list