The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
|
Theme path (local, web) - 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: Theme path (local, web) (/showthread.php?tid=6168) |
Theme path (local, web) - zaphod - 2014-04-21 Hello, I'im pretty new in GetSimple, i installed it on my Raspberry pi, it's light and fast so i'm verry happy. 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 RE: Theme path (local, web) - zaphod - 2014-04-21 I tried the plugin TS LinkChanger, finally it's not working... RE: Theme path (local, web) - Carlos - 2014-04-21 Another (small) plugin: Fix Site URL RE: Theme path (local, web) - hameau - 2014-04-21 (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. 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. RE: Theme path (local, web) - shawn_a - 2014-04-21 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. RE: Theme path (local, web) - zaphod - 2014-04-21 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-probleme-de-loopback-avec-la-livebox-play/ RE: Theme path (local, web) - shawn_a - 2014-04-21 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. RE: Theme path (local, web) - zaphod - 2014-04-21 (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 |