![]() |
404 Not found with a sub-directory installation on nginx - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: 404 Not found with a sub-directory installation on nginx (/showthread.php?tid=66078) |
404 Not found with a sub-directory installation on nginx - L. C. - 09-02-2016 Hello, you might notice I asked this question on StackOverflow as well. I'am really in a hurry to get a response. A website - let's call it fru.it - servers a CodeIgniter application under fru.it/blueberry trough nginx and PHP-FPM. The main site resides in /var/www/fru.it/ on the filesystem, while the app is under /var/www/fru.it_blueberry/blueberry/ (different root than the main site). In an attempt to tighten security while CodeIgniter was upgraded to 3.1.0, the app's file structure was changed as per the CodeIgniter User Manual to: Code: /var/www/fru.it_blueberry/ I'm sure it's a misconfiguration but I can't find the right detail by myself and have been trying with different setups. What do I need to change? Application Configuration The index file is modified to point to absoulte paths of diretories that got moved out of the public root: Code: $system_path = '/var/www/radiostudent.si_klubskimaraton/klubskimaraton/system' Code: $config['base_url'] = ''; Code: $route['default_controller'] = "Welcome"; Application Log Code: INFO - 2016-09-02 12:16:19 --> Config Class Initialized Webserver Configuration Code: location /blueberry { |