Welcome Guest, Not a member yet? Register   Sign In
[split] CodeIgniter 3.0.3 and Windows
#3

(11-02-2015, 04:21 PM)pabloveliz Wrote: Nice work on security... but my base_url gets detected as http://::1/webapp which doesn't work in my Win7/x64 using Chrome 46 when trying to access http://localhost/webapp

But, if I access as http://127.0.0.1/webapp the base_url gets detected as http://127.0.0.1/webapp  as it should, even if I try with the IP of the net (192.168.80.24) it gets resolved, and works!!

Is this a windows issue? or a CI one?

Anyway... thanks for the UPDATE !!

I'm working on Windows and following this helped

Upgrading from 3.0.2 to 3.0.3
http://www.codeigniter.com/user_guide/in...-not-empty

PHP Code:
// Set the protocol
$protocol 'http://';
if ( isset( 
$_SERVER["HTTPS"] ) && strtolower$_SERVER["HTTPS"] ) == "on" ) {
 
   $protocol 'https://';
} else {
 
   $_SERVER['HTTPS'] = 'off';
}
// Set the base_url
$config['base_url'] = $protocol.$_SERVER['HTTP_HOST']; 
Reply


Messages In This Thread
RE: CodeIgniter 3.0.3 Released - by rtorralba - 11-02-2015, 05:05 PM
RE: CodeIgniter 3.0.3 Released - by Martin7483 - 11-03-2015, 01:45 AM
RE: CodeIgniter 3.0.3 Released - by kenjis - 11-03-2015, 02:46 AM
RE: CodeIgniter 3.0.3 Released - by Martin7483 - 11-03-2015, 03:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB