1 stjeanp Jan 12, 2005 21:29
3 edb Jan 12, 2005 22:18
To not have all the referer traffic you could add all three dot-types to conf/_stats.php $blacklist where it says // add your own... I'm pretty sure that'll fix your undesirable referer data issue.
4 kevintm Jan 14, 2005 08:12
you will need global vars turned on. *this is a security risk, but it's the only solution I've found so far*
open: _config.php
find: $baseurl = 'http://yourdomainname.com/pathofb2';
change to: $baseurl = 'http://'.$SERVER_NAME.'/pathofb2';
5 stjeanp Jan 17, 2005 00:06
EdB wrote:
To not have all the referer traffic you could add all three dot-types to conf/_stats.php $blacklist where it says // add your own... I'm pretty sure that'll fix your undesirable referer data issue.
But will that block people using the .com or .net domain names from accessing the blogs?
6 edb Jan 17, 2005 00:51
AFAIK it will not stop them from accessing. I've got wonderwinds.com in mine, and everyone that goes to that domain ends up in my blog. It's just that I never end up as my own referer. Plus I can link to myself because I'm not in my antispam table.
Here's an idea: add the other dots then visit all three dot-types to make sure. If you get blocked then undo it and figure I don't know s*** from butter.
7 matthius Feb 08, 2005 20:39
FYI:
In response to kevintm's suggestion (good idea BTW) you can accomplish this without register_globals turned on (and I *highly* recommend turning it off). By using the following line instead:
$baseurl = 'http://' . $_SERVER['SERVER_NAME'];
I have an odd situation in which there are a few domains for different blogs and then an old way of accessing all the blogs as a subdirectory of the primary domain. So my _config.php file contains the following:
if($_SERVER['SERVER_NAME'] == 'www.primarydomain.com')
$baseurl = 'http://www.primarydomain.com/path/to/blogs';
else
$baseurl = 'http://' . $_SERVER['SERVER_NAME'];
Thanks for the idea - saved me some impatient waiting for 0.9.2 ;)
- Matt
kevintm wrote:
you will need global vars turned on. *this is a security risk, but it's the only solution I've found so far*
open: _config.php
find: $baseurl = 'http://yourdomainname.com/pathofb2';
change to: $baseurl = 'http://'.$SERVER_NAME.'/pathofb2';
8 powerspike Feb 10, 2005 22:33
matthius wrote:
FYI:
In response to kevintm's suggestion (good idea BTW) you can accomplish this without register_globals turned on (and I *highly* recommend turning it off). By using the following line instead:
$baseurl = 'http://' . $_SERVER['SERVER_NAME'];
I have an odd situation in which there are a few domains for different blogs and then an old way of accessing all the blogs as a subdirectory of the primary domain. So my _config.php file contains the following:
if($_SERVER['SERVER_NAME'] == 'www.primarydomain.com')
$baseurl = 'http://www.primarydomain.com/path/to/blogs';
else
$baseurl = 'http://' . $_SERVER['SERVER_NAME'];Thanks for the idea - saved me some impatient waiting for 0.9.2 ;)
- Matt
kevintm wrote:
you will need global vars turned on. *this is a security risk, but it's the only solution I've found so far*
open: _config.php
find: $baseurl = 'http://yourdomainname.com/pathofb2';
change to: $baseurl = 'http://'.$SERVER_NAME.'/pathofb2';
Just a quick question.
How does this effect the effects of linking and indexing and similar things, if you have multible domains pointing to the same install of b2, are there any drawbacks / pitfalls ?
9 matthius Feb 10, 2005 23:19
To tell you the truth I'm not sure. I haven't encountered any problems but I haven't been running things this way for very long.
It may confuse referer logs and depending on how you've set things up it might be difficult to control which one loads when a given domain is used.
It probably wouldn't be too difficult to make a less hackish solution and I was recently told that version 0.9.2 does support this functionailty. I'm not sure when it will be released but if this hack doesn't work for you its probably possible to mod the 0.9.1.x to use the 0.9.2 functionality.
Can any of the b2demi-gods let us know when 0.9.2 will hit the streets?
:)
- M
This feature seems to be planned for 0.9.2 version but I don't know exactly if this will fit your needs.