Created
July 30, 2014 09:10
-
-
Save welly/ebc3c335784136cfebb2 to your computer and use it in GitHub Desktop.
New Drupal 7 settings file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$databases = array ( | |
'default' => | |
array ( | |
'default' => | |
array ( | |
'database' => 'uat_iapo_drupal', | |
'username' => 'uat_dba', | |
'password' => '3W5LcJQv26DpxGMm', | |
'host' => 'localhost', | |
'port' => '', | |
'driver' => 'mysql', | |
'prefix' => '', | |
), | |
), | |
); | |
$update_free_access = FALSE; | |
$drupal_hash_salt = 'wZi6V3icR6wRS3W7eykXOAsNjqiLX7P7kVpKQMNDDKw'; | |
$base_root = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http'; | |
$base_url = $base_root .= '://'. $_SERVER['HTTP_HOST']; | |
$cookie_domain = '.'.preg_replace('/^www\./','',$_SERVER['HTTP_HOST']); | |
ini_set('memory_limit', '128M'); | |
ini_set('session.gc_probability', 1); | |
ini_set('session.gc_divisor', 100); | |
ini_set('session.gc_maxlifetime', 200000); | |
ini_set('session.cookie_lifetime', 2000000); | |
$conf['file_public_path'] = 'sites/default/files'; | |
$conf['404_fast_paths_exclude'] = '/\/(?:styles)\//'; | |
$conf['404_fast_paths'] = '/\.(?:txt|png|gif|jpe?g|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp)$/i'; | |
$conf['404_fast_html'] = '<html xmlns="http://www.w3.org/1999/xhtml"><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL "@path" was not found on this server.</p></body></html>'; | |
$conf['https'] = TRUE; | |
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && | |
$_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') { | |
$_SERVER['HTTPS'] = 'on'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment