Creating Domain Alias (ie: .onion mirror)

Hello,

I am attempting to create a mirror of my Boonex Dolphin, as a .onion.  

I got everything working.  Typing in the .onion hits my server, but then Boonex Dolphin simply re-writes what's in the URL bar to my actual site URL.

Is there a way around this? 

Quote · 7 Oct 2014

Did you edit the /inc/header.inc.php file to the right url and home folders ?

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 7 Oct 2014

Keep in mind, I want to keep my ".com" and also have the site accessible via the .onion URL for anonymity. 

Quote · 7 Oct 2014

Although you can get the site to respond to multiple domain names and/or multiple sub-domains, it will only operate under one of them. The $site['url'] variable in inc/header.inc.php defines what dolphin uses as the base url, and it is used throughout the site. Dolphin was not written to be used in the way you want to, so the answer is no. It will always redirect to the url it is configured to use in inc/header.inc.php

https://www.deanbassett.com
Quote · 7 Oct 2014

Thanks for your reply. I can't believe using an alias domain isn't a feature :( There is no way around it? 

Quote · 7 Oct 2014

In your header.inc.php (Backup this file even before opening it. Earth will smash into moon if you mess this file)

$sReqestedDomain   = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'evil world';
$aAllowedDomains   = array('main.domain', 'other.domain', 'probably.more', 'enough.now');
$sTheDomain             = $aAllowedDomains[0];

if(in_array($sReqestedDomain, $aAllowedDomains)) {
    $sTheDomain     = $sReqestedDomain;
}

Modify this line

$site['url']               = "http://{$sTheDomain}/"; 
and i hope it works Sealed 

 

Note: The above procedure is not tested or verified for real world cases in any way. Use it on your own risk. If you mess this up, too bad. If you don't, enjoy....i guess.

so much to do....
Quote · 7 Oct 2014

Well, you're awesome. That worked.

Unfortunately, with TOR, the .onion will not take the .CSS and display the site properly, so other problem arose, but in regards to the domain name - your fix worked like a charm. 

Quote · 8 Oct 2014

nice!!

http://www.boonex.com/market/posts/paansystems - your resource for Dolphin Pro
Quote · 10 Oct 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.