0
votes
0answers
24 views

Nginx Removes the index.php from URL

I have a codeigniter php application on nginx. It works as expected on Apache but after moving to nginx, I noticed that the index.php is automatically removed from the URL in all my links. Infact when ...
1
vote
1answer
134 views

nginx rewrite or internal redirection, primary script unknown

I am converting to nginx from apache. The application in question is as follows /contentlibrary_js /contentlibrary_js/app/index.php --> one page ajax app /contentlibrary_js/pagecreator/index.php --> ...
0
votes
1answer
226 views

Codeigniter URL only work for default router

I've installed Codeigniter on Nginx with this configuration : server { listen 80; server_name myserver; root /usr/share/nginx/html; index index.php index.html index.htm; error_log ...
0
votes
0answers
94 views

Under nginx and codeigniter how do i redirect certain pages from http to https

I want that certain pages to be available on https but not on http. I have a Code Igniter framework there. Here is the code from nginx conf: server { listen 80; ...... #enforce ...
0
votes
0answers
178 views

Nginx Virtualhost; Can't Add Simple Rewrite Rule

I've come up with this pretty handy Nginx virtualhost file for a PHP Codeigniter site. It works as-is, but I'm trying to do additional rewrites and I'm not having any luck. server { listen 80; ...
1
vote
0answers
194 views

nginx codeigniter rewrite: Controller name conflicts with directory

I'm trying out nginx and porting my existing apache configuration to nginx. I have managed to reroute the codeigniter url's successfully, but I'm having a problem with one particular controller whose ...
1
vote
1answer
257 views

nginx: rewrite subdomain to subdirectory without redirect

I'd like nginx to rewrite any http://api.example.org/xyz requests to actually call example.org/api/xyz behind the scenes. The tricky part too is that I'm using CodeIgniter so rather than load a php ...
1
vote
1answer
199 views

Nginx and Codeigniter rewrite error

I am trying to get a site on nginx running based on codeigniter. Some parts work but some fail. I noticed in access logs that index.php sometimes has two slashes at the end insted of one I am also ...
1
vote
0answers
240 views

Nginx + php5-fpm + CodeIgniter Response Too Slow

I have installed nginx, php5-fpm and setup codeigniter with REST controller on Ubuntu 12.04 LTS. The configurations work but response is too slow at times, even with just a single user. Sometimes the ...
0
votes
1answer
2k views

NGINX + Codeigniter doesnt work can't access controllers and send parameters to controllers

I want to run codeigniter under NGINX but it just doesnt work. I want to be able to send a parameters to controllers methods. But so far I can not even access controller using the address ...
0
votes
1answer
650 views

Can't get Codeigniter URLs working on Nginx

After successfully setting up nginx on my windows, another problem where I am stuck. Though, everything works as usual. I am able to access pages and PHP works fine but problem comes when I try to use ...
1
vote
1answer
260 views

How to setup CodeIgniter with nginx allowing for SSL?

My nginx.conf file has: server { listen 80; listen 443; server_name www.mysite.com; #charset koi8-r; #access_log /var/log/nginx/host.access.log main; root ...
0
votes
1answer
546 views

NGinx rewrite rules and post parameters

I have a website, using CodeIgniter, and running under NGinx. I used these rewrite rules to cleanup the URL, and remove the index.php from the URL. Unfortunately, I have a problem with AJAX queries ...
1
vote
0answers
632 views

only removing index.php rule works on my NginX and CodeIgniter as rewrite. Why?

Although I've spent 2 days reading on forums, I still can't get some Codeigniter rewrites working in Nginx. Here is the server configuration: server { listen *:80; server_name artademy.com ...
0
votes
0answers
713 views

Configure Nginx to run Codeigniter/PHP app?

I'm totally stumped. I've looked at about a dozen tutorials explaining how to configure Nginx to run PHP and a Codeigniter app. I can't get anything to work and worse yet typing mysite.com into the ...
8
votes
1answer
19k views

What is the name and location of the Nginx config file (htaccess equivalent)?

There are many tutorials on how to write Nginx rewrite rules to mimic Apache's .htaccess file but I can't confidently say I know what the name or location of this so-called Nginx config file actually ...
2
votes
2answers
4k views

What is nginx equalant for my htaccess mod_rewrite?

Previously i was using linode VPS running Apache for my CodeIgniter website. Today i installed nginx and my website landing page is coming but the other pages that is using htaccess for rewriting URL ...
0
votes
1answer
426 views

apache rewrite > nginx rewrite

I finnaly got nginx running my site are made with codeigniter and I have this old rewrite from my .htaccess #map all request urls to a specific controller method RewriteRule ^(.*)$ ...