Welcome Guest, Not a member yet? Register   Sign In
hostname converted to IP
#1

Hi

Since I am new to the Codeigniter please help me I am facing one problem. I am using Ion Auth library movement I entered userID and pwd it convert my hostname into ip It become http://127.0.1.1/admin/dashboard it should be dev.local/admin/dashboard. I posted this in Ion Auth forum but they advice me seek help of CI Forum.

Now the biggest problem is I am on localhost and created few virtual host for development purpose. My Os is Ubuntu 15 64 Bit, WebServer apache2 and I created virualhost name dev.local I am using in Codeigniter 3. Is it because of I config/database.php

$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',

But I tried to put hostname as dev.local but it fails to connect.

I try to debug the code using crome and found Resources Tab has option Cookies, localstorage, session Storage which previously showing dev.local and movement we submit the form it is showing 127.0.1.1

Thanks in Advance.
Reply
#2

You need to set the base_url in your config.php file
Code:
$config['base_url'] = 'http://local.dev/';
Reply




Theme © iAndrew 2016 - Forum software by © MyBB