# Nginx reverse proxy must understand lighttpd rewrite rules

**URL:** <https://www.ruby-forum.com/t/nginx-reverse-proxy-must-understand-lighttpd-rewrite-rules/204735>\
**Category:** NGINX\
**Created:** [March 20, 2011, 12:14am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-must-understand-lighttpd-rewrite-rules/204735 "2011-03-20T00:14:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [March 20, 2011, 12:14am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-must-understand-lighttpd-rewrite-rules/204735/1 "2011-03-20T00:14:42Z")

</div>

Hi,

Server 1: got lighttpd with rewrite rules (lighttpd rewrite rules)  
Server 2: got reverse proxy (no rewrite rules)

When on server 2 as proxy serving lighttpd i dont have any rules in its  
config and it still understand what server 1 sending and serving as it  
would have rewrite rules.

Problem arise when i switch on Server 2 lighttpd to nginx. Nginx serving  
pages but doing 404 for rewrite pages received from Server 1.  
Do i must convert rewrite rules from lighttpd on Server 1 and place it  
in Server 2 nginx configuration to make nginx understand rewrites?

Or problem is somewhere else.

Posted at Nginx Forum:

> **[nginx reverse proxy must understand lighttpd rewrite rules](https://forum.nginx.org/read.php?2,184048,184048#msg-184048)**
>
> Hi, Server 1: got lighttpd with rewrite rules (lighttpd rewrite rules) Server 2: got reverse proxy (no rewrite rules) When on server 2 as proxy serving lighttpd i dont have any rules in its config and it still understand what server 1 sending and...
