PB 1.1.1 pi not redirecting traffic December 16, 2016 03:46PM |
Registered: 7 years ago Posts: 9 |
Re: PB 1.1.1 pi not redirecting traffic December 16, 2016 04:39PM |
Registered: 7 years ago Posts: 9 |
Re: PB 1.1.1 pi not redirecting traffic December 20, 2016 08:45PM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: PB 1.1.1 pi not redirecting traffic December 23, 2016 01:01PM |
Registered: 7 years ago Posts: 9 |
Re: PB 1.1.1 pi not redirecting traffic December 27, 2016 07:21AM |
Admin Registered: 13 years ago Posts: 4,680 |
Then something must be missing. Remember, there are a lots of places where the browser cache is playing tricks! Assuming that there is no bug with copying the content folder, you have the following places where the hostname is relevant:Quote
My point is I changed all them and it still messing up, is there away to remove the redirect and recreation full stop?
grep piratebox.lan /opt/piratebox/ -Rto find the occurrences in the source.
server.error-handler-404 = "/redirect.html"
As I said, you might be tricked by your browser cache. It is possible that the change hostname option of the install_piratebox.sh has a bug and does not update the index.html (which are linked together via the filesystem). You might check www/index.html and redirect.html if both contain your new domain name after the usage of the install_piratebox.sh hostname option. If index.html is not updated in the same step, please open an issue on [github.com] including a copy&paste of the steps you did and a copy of the two files (copy & paste is enough).Quote
Your path to make it N00B proof as in some places make it more complex, it redirects back to piratebox.lan even when you have edited the files all the tuts on here show you, it will go to the new domain if you enter it, but if you go to another domain it will still go to piratebox, I liked PB's set up part from this really, I been able to install and set up everything on the pi manually part from the fake DNS and domain name what I would love,
I see you point, but I can also see, that you only see the top of the ice.Quote
The Web host side is VERY confusing and makes no sense, I been dealing with web hosting for about 10 years on both platforms and this is the only one that's ever confused the hell out of me, I can't even follow the default setting for that hosting platform as you edited enough for it to make no sense to every other source online.
Once again I can see this is to create one fix need but its locking out so many good ideas for the IMG, I not going to stop learning or following the project but in places it does become over complex.
Browser - uploads ---> Lighttpd ; Caches the complete file (on US if file complete, lighttpd --- transfers via IO read --> CGI CGI receives ---> writes to disk (on USSo, the system ends up with twice or triple IO for reading/writing the uploaded file on the same device, while droopy just places the file directly in the upload folder while getting the data over network.
As described above, PHP does not solve all the problems. I want to avoid dynamically pages as much as possible to keep it as fast as possible. Adjusting the webpage for customizing is done only by one person (at the creation)... but showing the content is done by each page access. So, we should try to save as much CPU cycles as possible, which means no PHP entry page. Especially not for the redirect, because this is hit far more often.Quote
this means you can use one domain name setting in the config file and using php can include all changes across all the pages you include the redirects, but using php should also remove the need for redirects on the uploader and things like this.
dns_redirect="/#/192.168.1.1"
Re: PB 1.1.1 pi not redirecting traffic January 03, 2017 07:06PM |
Re: PB 1.1.1 pi not redirecting traffic January 03, 2017 08:13PM |
Admin Registered: 13 years ago Posts: 4,680 |
true story.Quote
One thing I would like is maybe a way to drop one hosting platform for our own on more powerful devices, and I not saying you should do this, its about all of us hacking the world lol, and if there is a easy nice simple way to do it and I find it out I will be posting it here.
99% of the configuration is pre-made. I think only the content of the shoutbox is only generated during bootup.Quote
are the html files premade in the img? as that might be first step edit them files and then editing the install script to all match a custom domain, the way I do it is I don't redirct the server or anything on the dns side so it all points to my http server and vhost catchs to see if the domain is part of its list if not it defaults what I hope to add a redrict like yours to a default name in the vhost.
The first basic information can be found here:Quote
I need to look in to mesh next what scares the living hell out of me as I not getting ANY good or useful infomation in the last few years since p2p or meshnet as become a taboo in many peoples eyes since it is harder to monitor.
Re: PB 1.1.1 pi not redirecting traffic January 06, 2017 06:15PM |
Re: PB 1.1.1 pi not redirecting traffic April 11, 2017 03:33PM |
Re: PB 1.1.1 pi not redirecting traffic April 11, 2017 07:33PM |
Admin Registered: 13 years ago Posts: 4,680 |
Remove the content folder on the USB stick and fix your URL on /opt/piratebox/www/index.htmlQuote
I have this same problem, I have changed piratebox.lan/content my url in /opt/piratebox/www/index.html and /opt/piratebox/www/redirect.html but it does not work - the browser gets stuck reloading the page constantly. I've had this problem before and managed to fluke a fix, but now I can't find it again...
Re: PB 1.1.1 pi not redirecting traffic April 12, 2017 12:22PM |