diff --git a/blocks/html/serviceButtons.inc b/blocks/html/serviceButtons.inc index be3dd1d..bc9ccb7 100644 --- a/blocks/html/serviceButtons.inc +++ b/blocks/html/serviceButtons.inc @@ -6,7 +6,7 @@ * @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE.txt * @author Cliff Ingham */ -$serviceURL = new URL($_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']); +$serviceURL = new URL('https://'.BASE_HOST.$_SERVER['REQUEST_URI']); $serviceURL->purgeEmptyParameters(); $serviceURL->format = 'xml'; echo " diff --git a/configuration.inc.default b/configuration.inc.default index fb37e69..2b47ef7 100644 --- a/configuration.inc.default +++ b/configuration.inc.default @@ -28,8 +28,11 @@ Zend_Loader_Autoloader::getInstance(); * The URL to get to this site * Do NOT use a trailing slash */ -define('BASE_URL','http://localhost/application_name'); -define('BASE_URI', '/application_name'); +define('BASE_URI' , '/burials'); +define('BASE_HOST', isset($_SERVER['HTTP_X_FORWARDED_HOST']) + ? $_SERVER['HTTP_X_FORWARDED_HOST'] + : 'tarantula.bloomington.in.gov'); +define('BASE_URL' , "http://".BASE_HOST.BASE_URI); /** * Used when there's an error on the site. The Framework will