![]() |
Running CI on Amazon Servers - Trouble with htaccess - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Running CI on Amazon Servers - Trouble with htaccess (/showthread.php?tid=13027) |
Running CI on Amazon Servers - Trouble with htaccess - El Forum - 11-07-2008 [eluser]Xeoncross[/eluser] Ok, I can't believe that I am having trouble with this - but I can't get htaccess to work on amazons servers! I have tried all of these and I can't access the page without the "index.php" file in the URL! Code: <IfModule mod_rewrite.c> Code: # Deny OR Allow Folder Indexes. The address is something like http://sub.site.com/dev4/ Has anyone ever used the Amazon servers before and knows some trick I don't? accessing http://sub.site.com/dev4/welcome/ gives me an apache not found error, and accessing http://sub.site.com/dev4/index.php/welcome/ gives me a CI 404 error. I have removed the $config['index_page'] = ""; as well. Running CI on Amazon Servers - Trouble with htaccess - El Forum - 11-07-2008 [eluser]wiredesignz[/eluser] Try this setup, it may help. http://ellislab.com/forums/viewthread/96347/ Running CI on Amazon Servers - Trouble with htaccess - El Forum - 11-07-2008 [eluser]John Fuller[/eluser] I'm horrible with htaccess, but then again, I use Nginx for my own servers. But Amazon's servers are no different than any other VPS. You have total control over the OS and all the server software. You can even run Windows and Solaris if you want. Which AMI are you using? Keep in mind not all the images are setup for a production ready hosting environment out of the box. You might have to do some installation / configuration or your web server. Running CI on Amazon Servers - Trouble with htaccess - El Forum - 11-08-2008 [eluser]Xeoncross[/eluser] Nope, none of that worked either. http://ellislab.com/forums/viewthread/96347/ http://ellislab.com/forums/viewthread/92609/ http://ellislab.com/forums/viewthread/60406/ Also, I don't know much about the server - just that it is on AWS and that other the rewrites work with the "index.php" part in the url. Code: Apache/2.2.3 (CentOS) Server Running CI on Amazon Servers - Trouble with htaccess - El Forum - 11-08-2008 [eluser]Xeoncross[/eluser] [quote author="Xeoncross" date="1226189203"]Nope, none of that worked either. http://ellislab.com/forums/viewthread/96347/ http://ellislab.com/forums/viewthread/92609/ http://ellislab.com/forums/viewthread/60406/ Also, I don't know much about the server - just that it is on AWS and that other the rewrites work with the "index.php" part in the url. Code: Apache/2.2.3 (CentOS) Server EDIT: Duh! it appears that the server admins thought they setup mod_rewrite! I see the module is loaded by Apache and .htaccess files are allowed - but no rules work! I guess we're missing something! Thanks anyway! Running CI on Amazon Servers - Trouble with htaccess - El Forum - 11-09-2008 [eluser]Elliot Haughin[/eluser] Hey... I've been working on EC2 a great deal recently. I've tended not to use any of the 'pre-built' AMI's out there which claim to be LAMP setups for just these reasons. Instead, try the basic Ubuntu server installs, then build the AMI you want. Login to the server. Install Apache2, php5, all the apache modules you want, then bundle that distro up as your own AMI. Then you're good to deploy that exact setup to a new instance as soon as you want to scale. Elliot Running CI on Amazon Servers - Trouble with htaccess - El Forum - 07-19-2009 [eluser]new_igniter[/eluser] Hi Elliott, I am interested in putting CI on EC2. I saw your post. Is that still your general sentiment? |