I have a unique situation where I'm reverse-proxying an EE site into another domain via Akamai. The origin hostname of the EE site is smallbusiness.pb.com and Akamai rewrites sends traffic coming in via www.pb.com/smb to that URL.
In order to make Structure navigation listings have the correct endpoint URL, I had to modify my Focus Lab LLC configuration by adding the following to my config.prod.php file:
$base_url = $protocol . 'www.pb.com' . '/smb';
Everything has been fine since I have been manually deploying from staging to production by synching the database and rsyncing files.
Now that I'm rolling out BetterWorkflow, however, I'm running into 403 Forbidden on Assets image thumbnail requests. Those requests are to the www.pb.com/smb URL instead of smallbusiness.pb.com.
Here's a sample of the error:
Request URL:http://www.pb.com/smb/?ACT=59&file_id=2&size=67x67&hash=1352925992 Request Method:GET Status Code:403 Forbidden
Accept:*/* Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3 Accept-Encoding:gzip,deflate,sdch Accept-Language:en-US,en;q=0.8 Cache-Control:no-cache Connection:keep-alive Cookie:[redacted] Host:www.pb.com Pragma:no-cache Referer:http://smallbusiness.pb.com/smb/admin.php?S=0&D=cp&C=content_publish&M=entry_form&channel_id=3&entry_id=10&parent_id=0 User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.56 Safari/537.17 Query String Parametersview sourceview URL encoded ACT:59 file_id:2 size:67x67 hash:1352925992
Access-Control-Allow-Origin:* Cache-Control:max-age=0 Connection:keep-alive Content-Length:0 Content-Type:text/html Date:Wed, 23 Jan 2013 21:34:55 GMT Expires:Wed, 23 Jan 2013 21:34:58 GMT Server:Apache Set-Cookie:exp_last_activity=1358976898; expires=Thu, 23-Jan-2014 21:34:58 GMT; path=/ Vary:Accept-Encoding
What I'm looking for is a way in my configuration file to have one base_url when browsing the control panel via smallbusiness.pb.com and another base_url when the public site is browsed via www.pb.com.