*BSD News Article 62761


Return to BSD News archive

#! rnews 2486 bsd
Newsgroups: comp.infosystems.www.servers.unix,comp.unix.bsd.bsdi.misc,comp.unix.bsd.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!newshost.telstra.net!act.news.telstra.net!psgrain!nntp.cs.ubc.ca!unixg.ubc.ca!van-bc!news1.vancouver.istar.net!news.vancouver.istar.net!istar.net!newsjunkie.ans.net!newsfeeds.ans.net!howland.reston.ans.net!swrinde!newsfeed.internetmci.com!news.mathworks.com!news4.ner.bbnplanet.net!news.ner.bbnplanet.net!daprez!panther!otisg
From: otisg@panther.middlebury.edu (Otis Gospodnetic)
Subject: Virtual Domain + CGI + Database not working properly
Message-ID: <337cc$16825.36b@daprez>
Date: Mon, 04 Mar 1996 03:08:37 GMT
To: bsdi-users@BSDI.COM,INFO-PH@POSTOFFICE.CSO.UIUC.EDU
Summary: Qi httpd apache WebPh CGI database why doesn't it work ??!?
Keywords: qi httpd ph apache cgi database
X-Newsreader: TIN [version 1.2 PL2]
Lines: 42
Xref: euryale.cc.adfa.oz.au comp.infosystems.www.servers.unix:11050 comp.unix.bsd.bsdi.misc:2544 comp.unix.bsd.misc:542

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....


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