Recent Topics

1 Sep 23, 2015 18:58    

I have version 6.6.3 on opensuse, and everything was going well with my address to http://localhost:8000/b2evolution/ until I wanted it to use the external address of centauri.servegame.com (which is itself a redirected DNS from noip.com)

Although I can get to things under collection and from the admin.php pages, when I try to click the link on my main web site, it attempts to connect to http://centauri.servegame.com:8000/b2evolution/b2evolution/

I've looked in the database and tried to change the setting for home URLS, and even moved the whole b2evolution to b2old, made a new DB instance and loaded b2evolution again from scratch.

I checked /etc/php5/apache2 and /etc/apache2 and cant find where the system is redirecting even the name localhost to centauri.servegame.com which is somehow embedding the 2nd /b2evolution/

Everything else on the web site works fine with relative addressing, so its something I have done to b2evolution itself.

I have run find and grep looking for servegame.com to try to find what file this might be in, to no avail.

3 Sep 24, 2015 00:22

I indeed fought with clearing the cache rather agressively, and even in making changes that I assumed needed an apache restart, as to get PHP to see the new values.

I have screwed around with b2evolution/conf/_basic_config.php $baseurl a number of times

4 Sep 24, 2015 00:40

You are definitely onto something with the clearing of browser cache, as when I tried with konquerer, which had no history of my site, I got a completely different response, and I did, in fact get konq to see the home page.. so its a matter of working through that process now, thanks fplanque!

5 Sep 24, 2015 00:50

Yes! you are AWESOME! I did a few clearings in between what I was doing with front page addresses for firefox, and the main page came up!

I am at least back where I started.. where centauri.servegame.com redirects to localhost, but the main page comes up. The only real problem here is that ping-o-matic and others will say this is a local host, and no notifications will go out, which is why I was tweaking to begin with.

At least now I have a method for working it, even if I mess with PHP and apache settings and re-directs and whatever else.

6 Sep 24, 2015 08:46

Problem solved! Once I read more of the code in _basic_config.php I realized that the commented lines just below $baseurl would do exactly what I wanted with one minor change:

$baseurl = ( (isset($_SERVER['HTTPS']) && ( $_SERVER['HTTPS'] != 'off' ) ) ?'https://':'http://')
                                                        .$_SERVER['HTTP_HOST'].'/b2evolution/';

The original code only had the trailing slash, not /b2evolution/ - Now it works perfectly being accessed from localhost or external address :)

7 Sep 25, 2015 01:46

Cool :)

Why don't you always access b2evolution through your "external address" though?

8 Sep 25, 2015 02:13

I do, now. I think it was for either purposes of testing, or being able to access things if we had internet problems here.


Form is loading...