ok.. so what you have are 2 completely seperate sites using the same
database, and the same database generated site files.
my best guess is that your system is defaulting to your main site. have you
tried putting your lan based domain at the top of the virtual host list? may
be as simple as that. if the site files are seperate i dont see why apache
would bring up your public domain whilst working with the private one. are
you using the private domain as a way of updateing the public site? or is it
alltogether diffrent?
"ruud habets" <otwdummy.RemoveThis@xs4all.nl> wrote in message
news:4138108e$0$566$e4fe514c@news.xs4all.nl...
> Niteshade wrote:
> > question.....
> > are both domains accessing the same database?
>
> yes
>
> > i run sql and havent had any of those problems. tell us some more about
your
> > setup, OS , syuff like that.
>
> i'm running a redhat 9 system using apt to update. so right now apache
> is version 2.050-1 and mysqld is version 3.23.58. PHP is version 4.2.2-17.
> what more info do you need?
>
> ruud
>
>
> >
> >
> > "ruud habets" <otwdummy.RemoveThis@xs4all.nl> wrote in message
> > news:41371baf$0$10528$e4fe514c@news.xs4all.nl...
> >
> >>hi,
> >>here is my situation:
> >>
> >><VirtualHost domain1>
> >> DocumentRoot /dir1
> >> ServerName domain1
> >> DirectoryIndex index.html index.php index.htm index.shtml
> >> ErrorLog logs/domain1.error
> >> TransferLog logs/domain1.transfer
> >> Options Indexes FollowSymLinks
> >></VirtualHost>
> >>
> >><VirtualHost domain2>
> >> DocumentRoot /dir2
> >> ServerName domain2
> >> DirectoryIndex index.html index.php index.htm index.shtml
> >> ErrorLog logs/domain2.error
> >> TransferLog logs/domain2.transfer
> >> Options Indexes FollowSymLinks
> >></VirtualHost>
> >>
> >>domain1 is a LAN
> >>domain2 is a public domainname
> >>both sites have access to 1 mysql database on localhost.
> >>all (database generated pages as well) works well, except:
> >>after changes to the database inititated by domain2 the database is
> >>updated correctly, but the resulting page has the URL as if the serving
> >>domain is domain 1 and not domain 2.
> >>can somebody tell me how to fix this?
> >>
> >>ruud habets
> >
> >
> ><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: virtual hosts & mysql database question