Apache Problems

Apache Problems

Post by Jeff Binkle » Sun, 22 Jun 1997 04:00:00



I am currently running Apache 1.1.1 on Linux.  Everything has been running
fine, except I recently added another virtual domain.  Now the ScriptAlias
directive on the second virtual server doesn't appear to work.  When a cgi
script is called on the second virtual server, I get an error that it can't be
found in the first virtual server's cgi-bin cirectory.  here is an excerpt
from my httpd.conf file.  Am I missing something:

<VirtualHost www.firstserver.com>

DocumentRoot /home/firstserver
ServerName www.firstserver.com
ErrorLog logs/firstserver.com/error_log
TransferLog logs/firstserver.com/access_log
ScriptAlias /cgi-bin/ /home/firstserver/cgi-bin/

#<VirtualHost www.secondserver.com>

DocumentRoot /home/secondserver
ServerName www.secondserver.com
ErrorLog logs/secondserver.com/error_log
TransferLog logs/secondserver.com/access_log
ScriptAlias /cgi-bin/ /home/secondserver/cgi-bin/

Thanks in advance,

Jeff Binkley
ASA Network Computing

 
 
 

Apache Problems

Post by Marc Slemk » Mon, 23 Jun 1997 04:00:00


[posted and mailed]

Ermm... please read the manual to see how to use the VirtualHost
directive.  You need to close the first one and open the second
one.  There is a reason you were probably getting an error when
you put the second one in until you commented out the VirtualHost
bit.  You aren't really defining two VirtualHosts here, just one.

They should be like:

        <VirtualHost server1>
        ...
        </VirtualHost>
        <VirtualHost server2>
        ...
        </VirtualHost>


>I am currently running Apache 1.1.1 on Linux.  Everything has been running
>fine, except I recently added another virtual domain.  Now the ScriptAlias
>directive on the second virtual server doesn't appear to work.  When a cgi
>script is called on the second virtual server, I get an error that it can't be
>found in the first virtual server's cgi-bin cirectory.  here is an excerpt
>from my httpd.conf file.  Am I missing something:
><VirtualHost www.firstserver.com>

>DocumentRoot /home/firstserver
>ServerName www.firstserver.com
>ErrorLog logs/firstserver.com/error_log
>TransferLog logs/firstserver.com/access_log
>ScriptAlias /cgi-bin/ /home/firstserver/cgi-bin/
>#<VirtualHost www.secondserver.com>

>DocumentRoot /home/secondserver
>ServerName www.secondserver.com
>ErrorLog logs/secondserver.com/error_log
>TransferLog logs/secondserver.com/access_log
>ScriptAlias /cgi-bin/ /home/secondserver/cgi-bin/
>Thanks in advance,
>Jeff Binkley
>ASA Network Computing


 
 
 

Apache Problems

Post by Robert Steppache » Tue, 24 Jun 1997 04:00:00


Quote:> >#<VirtualHost www.secondserver.com>

Did you make a typo here ?  Haveing the # would cause problems.

> [posted and mailed]

> Ermm... please read the manual to see how to use the VirtualHost
> directive.  You need to close the first one and open the second
> one.  There is a reason you were probably getting an error when
> you put the second one in until you commented out the VirtualHost
> bit.  You aren't really defining two VirtualHosts here, just one.

> They should be like:

>         <VirtualHost server1>
>         ...
>         </VirtualHost>
>         <VirtualHost server2>
>         ...
>         </VirtualHost>


> >I am currently running Apache 1.1.1 on Linux.  Everything has been running
> >fine, except I recently added another virtual domain.  Now the ScriptAlias
> >directive on the second virtual server doesn't appear to work.  When a cgi
> >script is called on the second virtual server, I get an error that it can't be
> >found in the first virtual server's cgi-bin cirectory.  here is an excerpt
> >from my httpd.conf file.  Am I missing something:

> ><VirtualHost www.firstserver.com>

> >DocumentRoot /home/firstserver
> >ServerName www.firstserver.com
> >ErrorLog logs/firstserver.com/error_log
> >TransferLog logs/firstserver.com/access_log
> >ScriptAlias /cgi-bin/ /home/firstserver/cgi-bin/

> >#<VirtualHost www.secondserver.com>

> >DocumentRoot /home/secondserver
> >ServerName www.secondserver.com
> >ErrorLog logs/secondserver.com/error_log
> >TransferLog logs/secondserver.com/access_log
> >ScriptAlias /cgi-bin/ /home/secondserver/cgi-bin/

> >Thanks in advance,

> >Jeff Binkley
> >ASA Network Computing

 
 
 

1. php problem or apache problem?

I've got php and apache running on MAC OSX and have a file path
problem. I can see my php files and the includes but the includes
images are not showing up when I use /filename/image.jpg.

I can see the images from within Dreamweaver so I know the paths are
correct and this has worked on other systems where I used to
work...leads me to think something is not correct on my machine and
setup.

I can see the images if I use a relative url, but thats not what I want
because that will only display on one level and I plan to use the
navigation across mutiple folder depths. Not sure why / will not work
here.

Ideas?

Bear in mind I am a complete newbie when it comes to apache and php and
have already tried some of the tricks php.net suggests.I'm trying this
because its been suggested that apache may need to be configured to
accept the / absolute path and I am clueless.

Katherine

--
www.lucidbydesign.com

2. CS 4280 (Crystal SoundFusion) solution

3. NIS problems => Apache problems

4. Setup problems

5. Apache: problem loading libproxy.so

6. What Athlon chipset is most stable in Linux with 3 512MB DDR modules ?

7. Apache problems

8. Best SCSI card to use syjet drive

9. Apache Problems: SSI / URL-Interpretation

10. Apache problems

11. Apache problem, GRAVE

12. Apache problem solved!

13. Weird Apache Problem