Dataface from 2 different NICs

A place for users and developers of the Xataface to discuss and receive support.

Postby meikel » Sun Jul 15, 2007 12:44 pm

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!
meikel
 
Posts: 17
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Mon Jul 16, 2007 3:17 pm

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
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby meikel » Mon Jul 16, 2007 10:03 pm

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
meikel
 
Posts: 17
Joined: Wed Dec 31, 1969 5:00 pm

Postby ivbo » Mon Jul 16, 2007 10:57 pm

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
ivbo
 
Posts: 6
Joined: Wed Dec 31, 1969 5:00 pm

Postby meikel » Wed Jul 18, 2007 8:25 am

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
meikel
 
Posts: 17
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 29 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved