[SOLVED] Relative URLs; access from LAN and web
frye0031
Joined: 2004-11-29
Posts: 2 |
Posted: Tue, 2005-08-23 08:18 |
I searched the G2 forums for a long time... and either I completely missed it or I can't figure out how to do this: How can I have access to my G2 installation from inside the local network and outside? With G1 I could easily use relative URLs, but G2 seems to support only the inside network address (the address I currently have G2 configured from) or the outside address here [sunfryes.com], but not both at the same time! Relevant php info is available here. I installed standalone from inside the network, and I'm not using mod_rewrite with G2 (though I do have it available to Apache). Neither or these options seem to do what I'm looking for (I think). |
|
Posts: 13451
You can use the hosts file trick mentioned in FAQ Gallery:c.22 -- That should work just fine with G2 as well.
The problem isn't really G2, but your router and how it handles traffic.
Posts: 2
Yes, altering the host file did work, but I rather appreciated the G1 solution cleanliness. Perhaps a similar solution for G2 can be implemented?
Posts: 13451
frye0031, I'm sure the developers will comment on this if they can.
Posts: 32509
i guess we'll switch to relative URLs soon after G 2.0, but for another reason: to save bandwidth (we generate a lot of urls per page, Bharat had the idea to leave the host part away).
your problem may go away then. i guess your problem is that we depend on the webserver to give us the correct host address and this usually works quite good. maybe it returns something wrong in your case when accessed from of the urls.
maybe...maybe it could also be related to the short url rewrite module.
please deactivate the g2 rewrite module and remover the htaccess file and check if the problem is solved.