Welcome Guest, Not a member yet? Register   Sign In
Make CodeIgniter work behind apache with nginx as intermediary
#4

Finally solved by setting uri_protocol = PATH_INFO

application/config/config.php

PHP Code:
$config['base_url'] = $_SERVER['HTTP_HOST'] == '10.20.30.40' 'http://10.20.30.40/ci/' 'http://www.subdomain.company.xxx/ci/'
$config['index_page'] = '';
$config['uri_protocol'] = 'PATH_INFO'

and .htaccess like

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

Now it is working perfect locally and loaded from Internet
Reply


Messages In This Thread
RE: Make CodeIgniter work behind apache with nginx as intermediary - by kabeza - 08-03-2017, 07:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB