Page 1 of 1
Posted:
Sun Jul 15, 2007 12:44 pm
by meikel
Hi,
I'm trying to setup a sever, where users can access the same database from 2 different IP addresses (local & internet) on the same server.
Is there a way to do this via "index.php", where you usually refer to the IP address of one server?
I know, I could duplicate the database folder and modify "index.php" according to the appropriate network, but this would mean more administration...
Thanks in advance for your help
kind regards
meikel
PS: discovering so many well thought details!
Posted:
Mon Jul 16, 2007 3:17 pm
by shannah
Hi Meikel,
I'm not sure I fully understand what you are trying to do. Are you trying to access both databases from one application? If so, do you want it to work like:
a. The 2 databases have different tables, so when the user clicks on some tabs they are using one database, and when they click on other tabs, they are using the other database.
or
b. The 2 databases are mirrors of each other. When the user is connected to the internet, it uses the remote db, otherwise it uses the local db?
or
something else.
-Steve
Posted:
Mon Jul 16, 2007 10:03 pm
by meikel
Hi Steve,
the goal is, that the users can access the same databases, whether they're on the local network or on the internet. Due to odd internal network restrictions using the hostname of the server doesn't seem to work. I have to use static IP addresses (1 for internet & 1 for local net) in my index.php where you usually would just put "df_init(__FILE__, '
http://yourdomain.com/dataface');"
Maybe it's even not really a Dataface problem?
kind regards
meikel
Posted:
Mon Jul 16, 2007 10:57 pm
by ivbo
Hi Meikel,
I use similar configuration of Dataface - with different hostnames and IP addresses for one instance.
In index.php I use relative addressing - without server name and everything is working fine.
"df_init(__FILE__, '/dataface');"
Ivan
Posted:
Wed Jul 18, 2007 8:25 am
by meikel
Hi Ivan,
thanks a lot for your advice. It worked without any problem. Didn't know, that you can use relative addressing here, too.
kind regards
meikel