Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Theme path (local, web)
#1
Hello,

I'im pretty new in GetSimple, i installed it on my Raspberry pi, it's light and fast so i'm verry happy. Smile

I have just one problem : i want to acceed to my website trhought the internet AND througt my local network.
That cause mistakes with theme loading...
It depends of Url Website in put settings.
- when i put http://192.168.1.42/ the theme load verry well for local users but not for internet ones.
- when i put http://mydomain.net the theme load verry well internet users but not for local ones.

I wouldlike GetSimple detect it automatically. I'ts strange that it's not automatic (it must be easy to use relative paths)...
If you have some ideas to resolve it, thanks to share.
I have few ideas of php code to insert to resolve it but i don't know in what file is the theme loading function.

Thanks
Reply
#2
I tried the plugin TS LinkChanger, finally it's not working...
Reply
#3
Another (small) plugin: Fix Site URL
Reply
#4
(2014-04-21, 17:19:59)zaphod Wrote: - when i put http://192.168.1.42/ the theme load verry well for local users but not for internet ones.
- when i put http://mydomain.net the theme load verry well internet users but not for local ones.

It sounds like your router does not do loopback (when you use an external address to go to your internal network).

Try adding your domain name and IP address to your hosts file:
Code:
192.168.1.42    mydomain.net

Keep the GS admin settings as mydomain.net. You must include any sub-domain, e.g., www, in both the GS settings and the hosts file.

Each machine on the local network will need that line adding to its hosts file to be able to see the site. (If you want to view the site on a browser running on your Pi, you may need to change the IP address to localhost in the Pi's hosts file.)

In case you need it, more information on modifying the hosts file is here.
--
Nick.
Reply
#5
yeah gs does not play well with this, there has been some discussion in forums about overriding the url check in settings, and adding a relative site path like /, I am not sure of the success of this but it should work in theory.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#6
Thanks all for your answers !

The solution of hameau seems verry good for me. With the modification in hosts it's ok now.
I'll just try if I can activate the loopback in my rooter, it's the information that I was missing !!!
I found a workarround for my box, i'll try it ;-)
http://www.2leplace.fr/contourner-le-pro...ebox-play/
Reply
#7
Instead of hosts file, you could probably also run a dns server locally, if you had a large internal network that needed access by name.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#8
(2014-04-21, 23:48:32)shawn_a Wrote: Instead of hosts file, you could probably also run a dns server locally, if you had a large internal network that needed access by name.

My local network is not so large ^^ I run GS on a raspberry Pi ;-)
This solution will be enough i think.
Thanks
Reply




Users browsing this thread: 1 Guest(s)