Welcome! Log In Create A New Profile

Advanced

Re: Switching to nginx: php and rewrite rules from apache

Francis Daly
June 07, 2014 05:10AM
On Sat, Jun 07, 2014 at 10:50:05AM +0200, Luciano Mannucci wrote:

Hi there,

> I have one site in php developped by the customer that seemed
> ok till I discovered that it has a subdirectory with its own .htacess
> file. Trying to add the rewriting rules makes the php "dead", only in
> the cited subdirectory.

You use "location" (http://nginx.org/r/location) and "rewrite"
(http://nginx.org/r/rewrite) with the "break" flag.

Based on the documentation, I guess that you will want to include within
your "/en/" location, some configuration which tells nginx how you want
php requests to be handled.

> What did I have wrong?

You left out some useful information:

* what request do you make?
* what response do you get?
* what response do you want?

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Switching to nginx: php and rewrite rules from apache

Luciano Mannucci June 07, 2014 04:52AM

Re: Switching to nginx: php and rewrite rules from apache

Francis Daly June 07, 2014 05:10AM

Re: Switching to nginx: php and rewrite rules from apache

Luciano Mannucci June 07, 2014 06:10AM

Re: Switching to nginx: php and rewrite rules from apache

Francis Daly June 07, 2014 06:42AM

Re: Switching to nginx: php and rewrite rules from apache

Luciano Mannucci June 10, 2014 09:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 313
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready