Welcome! Log In Create A New Profile

Advanced

Re: Convert lighttpd rewrite rule to nginx

July 26, 2012 12:32AM
On Wed, Jul 25, 2012 at 08:47:57PM -0400, justin wrote:
> Igor,
>
> Thanks for the reply. Still not working, getting 404 error.
>
> Here is the config snippet I am using:
>
> server {
> listen 80;
>
> server_name app.mydomain.com;
>
> root /srv/www/domains/app.mydomain.com;
>
> index index.php;
>
> access_log /var/log/nginx/domains/app.mydomain.com/access.log;
> error_log /var/log/nginx/domains/app.mydomain.com/error.log;
>
> include /etc/nginx/excludes.conf;
>
> location ~ ^[^.]+$ {
> try_files $uri =404;

As I understand the requested file does not exist on file system,
so try_files cannot find it and returns 404. The try_files is not
needed here.

> fastcgi_param SCRIPT_FILENAME $document_root/controller.php;
> fastcgi_param PATH_INFO $uri;
> fastcgi_intercept_errors on;
> fastcgi_pass 127.0.0.1:9000;
> include /etc/nginx/fastcgi_params;
> }
>
> #Needed for standard php files which end with the .php extension
> include /etc/nginx/php.conf;
>
> include /etc/nginx/expires.conf;
> }


--
Igor Sysoev

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

Convert lighttpd rewrite rule to nginx

Anonymous User July 23, 2012 09:23PM

Re: Convert lighttpd rewrite rule to nginx

Edho Arief July 24, 2012 01:40AM

Re: Convert lighttpd rewrite rule to nginx

Anonymous User July 24, 2012 02:08AM

Re: Convert lighttpd rewrite rule to nginx

Edho Arief July 24, 2012 02:44AM

Re: Convert lighttpd rewrite rule to nginx

Igor Sysoev July 24, 2012 02:50AM

Re: Convert lighttpd rewrite rule to nginx

Anonymous User July 25, 2012 08:47PM

Re: Convert lighttpd rewrite rule to nginx

Igor Sysoev July 26, 2012 12:32AM

Re: Convert lighttpd rewrite rule to nginx

Anonymous User July 26, 2012 01:00AM

Re: Convert lighttpd rewrite rule to nginx

Edho Arief July 26, 2012 01:58AM

Re: Convert lighttpd rewrite rule to nginx

Anonymous User July 26, 2012 02:05AM

Re: Convert lighttpd rewrite rule to nginx

Edho Arief July 26, 2012 02:12AM

Re: Convert lighttpd rewrite rule to nginx

Anonymous User July 26, 2012 03:04AM

Re: Convert lighttpd rewrite rule to nginx

Edho Arief July 26, 2012 03:14AM

Re: Convert lighttpd rewrite rule to nginx

Anonymous User July 26, 2012 03:23AM

Re: Convert lighttpd rewrite rule to nginx

António P. P. Almeida July 26, 2012 03:38AM

Re: Convert lighttpd rewrite rule to nginx

Anonymous User July 26, 2012 03:42AM

Re: Convert lighttpd rewrite rule to nginx

Edho Arief July 26, 2012 03:48AM

Re: Convert lighttpd rewrite rule to nginx

Anonymous User July 26, 2012 08:52PM

Re: Convert lighttpd rewrite rule to nginx

Anonymous User August 03, 2012 07:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 189
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready