1 (edited by ConnyT 2003-12-27 23:14)

Topic: Local and remote 'base_url'.

I sit behind a firewall working on my forum. In order to do that i set the base url to
'http://garderoben/users/td2/pbb' were 'garderoben' is the 'local domain' name.

So far so good! When I enable the option to 'Validate registrations' an email is sent to the registrant. It points to 'http://garderoben/users/td2/pbb/login.php'. That doesn't work.

What I would like is 2 'base_url'; one if user connects from the local network and one if the user connects from the Internet (Remote).

Local: 'http://garderoben/users/td2/pbb'
Remote: 'http://194.237.242.39/users/td2/pbb

All suggestions are appreciated smile

Re: Local and remote 'base_url'.

Can't you access the forum locally by going to http://194.237.242.39/users/td2/pbb ?

You could also try adding a line to your hosts file.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Local and remote 'base_url'.

I can not access the forum with http://194.237.242.39/users/td2/pbb.
I tried to update the hosts-file without success sad . All I do then is trying to connect to the router/gateway that I have installed. (D-Link DI-804). It doesn't pass the request through..

I used to have DI-704 and with that one I could connect to my IP address from inside my local network, but that 'feature' isn't there in 804. OR, I haven't found the setting for it..

Re: Local and remote 'base_url'.

The fact that you use an IP address instead of a domain name to access your server from the outside does complicate things. I can see you have the hostname garderoben.just.nu assigned to your IP address. Might I ask why you don't use that URL on your website?

If you were using the hostname instead of the IP-adress, things would be easier. You could then just add an entry in your hosts file like this:

192.168.*.*    garderoben.just.nu

Where 192.168.*.* is the internal IP address of your webserver.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Local and remote 'base_url'.

Well, garderoben.just.nu isn't really a domainname, as far as I have understood. The service "just.nu" only points to my ip-address, it doesn't translate it.

(I will have to give up the "cheap" stuff and get myself a proper domain name .. hehehe .. *ehrm* ..)

I guess i'll just have to back to the drawing board.
Thanks anyway!

Re: Local and remote 'base_url'.

Ah, I see. There are lots of other free dynamic DNS services that offer better solutions. I'm a big fan of www.dyndns.org myself.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Local and remote 'base_url'.

Sorted!
I almost got what I wanted by getting a "no-ip" address.
Then adding it to the hosts-file cured the symptom of 404..

Again, thanks!

Re: Local and remote 'base_url'.

No problem. I just want to avoid adding a second base URL at any cost! :D

"Programming is like sex: one mistake and you have to support it for the rest of your life."