![]() |
REST server problems in Amazon EC2 - 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: REST server problems in Amazon EC2 (/showthread.php?tid=69282) |
REST server problems in Amazon EC2 - thiago.bittencourt - 10-31-2017 I have a CI 3 REST project in my Vagrant machine using the box opifer/ubuntu-php7. Everything works fine in my development environment, but not in my Amazon EC2 servers. I have two free-tier instances:
Problems:
Why this is happening and how to solve this? And also, am I missing something in my setup? Because I'm having weird problems that I didn't have in my development environment, and the code is the same! This is my form: Code: <form id="formLogin" style="margin-top: 5px;" name="formLogin" method="post" action="<?php echo site_url('login_home/login');?>"> And here is my controller: PHP Code: class Auth extends REST_Controller RE: REST server problems in Amazon EC2 - thiago.bittencourt - 05-29-2018 Nevermind, I got the solution! This was happening just because I forgot to enable mod_rewrite in my Apache. This fixes the problem: Code: sudo a2enmod rewrite RE: REST server problems in Amazon EC2 - DavidMichael - 06-14-2018 An XML error document as the response body Content-Type: application/xml An appropriate 3xx, 4xx, or 5xx HTTP status code |