What I do is have them separated.
/home/tss/html for the html files
/home/tss/cgi-bin for the cgis
ScriptAlias /cgi-bin/ "/home/tss/cgi-bin" to specify the cgi-bin
directory.
It's almost always a bad idea to have your cgis in your main document
directory, anyhow, as a security practice.
On T
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 sc
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
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 t
On Mon, 8 Apr 2002, Stephen Spalding wrote:
> 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
> Transfer
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:
#