GetSimple Support Forum
PROBLEM Routing to internal VPN/Proxy adress possible ? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: PROBLEM Routing to internal VPN/Proxy adress possible ? (/showthread.php?tid=8471)



Routing to internal VPN/Proxy adress possible ? - itsjustme - 2016-06-02

Hi @ all ...  Blush


The Problem:
We've got an internal Company Site which runs on server in "House A". All other clients (House B,C,D) connecting via VPN to the server. So, people who work in "House A" will reach the website with: "http://192.168..../siteblahblah" , all other VPN-Clients (which have 10.0.0.x adresses given) need to type "http://10.0.0.x/siteblahblah". 

Base path in getsimple is not variable, so its stuck on ONE siteurl ( ex.: "http://192.168..../siteblahblah".) The problem is that all VPN-Clients will only see a broken website/theme. If I change the siteurl to "http://10.0.0.x/siteblahblah", the people on the local network (without VPN) will have this crashed side. All things on theme are handeld with the "get_site_url()" and "get_theme_url()" variable, which works only for one side.. local clients OR vpn clients, but not both.... I also tried to set the siteurl to "./siteblahblah", but didn't worked at all. 

Question:
Is there a way to force the variables (basepath etc.) to switch if a vpn/proxy adress is detected on clientside, client-browser ?
Maybe via .htaccess ? Or setting the basepath only to "./" instead of any real path ? 

Im lost with this problem  Sad

PS: Nope, I can't change any settings on the vpn routing and/or the vpn server.


RE: Routing to internal VPN/Proxy adress possible ? - shawn_a - 2016-06-02

Just modify website.xml and put relative url in there, or remove the type=url from the settings form to bypass the check and enter what ever you want


RE: Routing to internal VPN/Proxy adress possible ? - itsjustme - 2016-06-03

(2016-06-02, 23:20:21)shawn_a Wrote: Just modify website.xml and put relative url in there, or remove the type=url from the settings form to bypass the check and enter what ever you want

Oh my ... ^^ 
Thanks for this easy workaround  Big Grin Big Grin Big Grin

Will test if the " ./ " will do the magic 


RE: Routing to internal VPN/Proxy adress possible ? - shawn_a - 2016-06-03

You will need the full WEB path

for example, if subdir

http://127.0.0.1/dev/getsimple/develop/
relative = /dev/getsimple/develop/


RE: Routing to internal VPN/Proxy adress possible ? - itsjustme - 2016-06-03

Yep, it's working as it should. (with local and vpn sessions).
I decided to remove the url attribute in the settings file, its the more flexible way Cool

Thanks a lot Shawn and thanks for all your work on this project.
I'm using GS since December 2011 on different projects and i'm still happy with it Smile Smile 


RE: Routing to internal VPN/Proxy adress possible ? - shawn_a - 2016-06-03

3.4 fixes this for reals


RE: Routing to internal VPN/Proxy adress possible ? - itsjustme - 2016-06-03

Great! Smile Any little spoiler for a release date or new features ? Smile


RE: Routing to internal VPN/Proxy adress possible ? - shawn_a - 2016-06-08

Nope but its pretty stable
Its all on github