Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!newshost.telstra.net!act.news.telstra.net!psgrain!iafrica.com!pipex-sa.net!plug.news.pipex.net!pipex!weld.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.mathworks.com!uhog.mit.edu!uw-beaver!nntp.cs.ubc.ca!unixg.ubc.ca!rover.ucs.ualberta.ca!news.nl2k.edmonton.ab.CA!news.nl2k.edmonton.ab.CA!not-for-mail From: doctor@nl2k.edmonton.AB.ca (The Doctor) Newsgroups: comp.infosystems.www.servers.unix,comp.unix.bsd.bsdi.misc,comp.unix.bsd.misc Subject: Re: Virtual Domain + CGI + Database not working properly Date: 4 Mar 1996 08:22:57 -0700 Organization: NetLine 2000 Lines: 68 Message-ID: <4hf1sh$aek@doctor.nl2k.edmonton.ab.ca> References: <337cc$16825.36b@daprez> NNTP-Posting-Host: doctor.nl2k.edmonton.ab.ca Keywords: qi httpd ph apache cgi database Xref: euryale.cc.adfa.oz.au comp.infosystems.www.servers.unix:11046 comp.unix.bsd.bsdi.misc:2543 comp.unix.bsd.misc:541 In article <337cc$16825.36b@daprez>, Otis Gospodnetic <otisg@panther.middlebury.edu> wrote: >Hello, > >I have a Web Virtual domain + CGI (WebPh sort of) + Qi Database problem >here..... >the machine is a 386 running BSDI 2.* and Apache 1.0.0 and the database is Qi. > >I have a CGI that talks to a database and works well, when in the real >machine's cgi-bin, but when I move it to Virtual Host's cgi-bin it stops >working properly. >It does connect to it because I can see that the database responds, but >the respond is "bye" - which means the end of the CGI<=>Database talks. > >I can telnet to virtual domain and talk to the Qi database directly and things >work fine. >I can use Ph and query the database. >I can run the CGI from the shell and it talks to the database properly, but >when run from the Web it doesn't :( >I don't think httpd, Apache is the problem because the Virtual Host works >otherwise. >It seems to me that Qi doesn't like when the _CGI_ talks to it from the >_Virtual_Host_ > >Anyone knows what could be the reason for this ? >Any help would be appreciated cause this doesn't make much sense to me.... You may want to join the Apache Mailing List and pick up apache_1.0.3.BSDI.tar.gz from ftp://ftp.nl2k.edmonton.ab.ca/pub/Unix. 1) The virtual is just a gateway for the real thing, hence you should manipulate the real thing and not the virtual host. 2) Cgi-bin works irregardles of real and virtual hosts, hence I think you may NOT be manipulating the data correctly. Please try solutions. Also check your virtual host entry. > > >Otis >P.S. >an example of what I am talking can be seen here: >working everything (real domain and CGI in its cgi-bin): >http://bets.cois.com/cgi-bin/WebPh?DB=ns-CON&ns_server=bets.cois.com& >available_date=open >(all on one line) > >not working (virtual domain and CGI in its cgi-bin): >http://www.dominis.com/cgi-bin/WebPh?DB=ns-CON&ns_server=bets.cois.com& >available_date=open >(all on one line) >-- >Otis.Gospodnetic@mail.middlebury.edu >Information Technology Services >Middlebury College > -- God, Queen and Country Member - Liberal International NEVER Satan, President and Republic Board Member - Edmonton Heritage Nazarene Hating Bachelor's Living Republicanism is Satanism: Satan wants to usurp God from his throne just like republicans are out to dismiss monarchies. http://doctor.nl2k.edmonton.ab.ca/~doctor British Columbia, beware of Van Der Zalm Reform and Harcourt/Clark NDP. Australia, Thanks for voting in wisdom and the name of civilization.