Skip to content

Instantly share code, notes, and snippets.

@welly
Last active August 29, 2015 14:01
Show Gist options
  • Save welly/93dea2f080978b4df76e to your computer and use it in GitHub Desktop.
Save welly/93dea2f080978b4df76e to your computer and use it in GitHub Desktop.
Standard, semi-minimised settings file for Drupal 6
<?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