Welcome! Log In Create A New Profile

Advanced

Running nginx as reverse proxy with Apache, rewrite problem

March 18, 2011 02:42PM
I'm using a cPanel plugin located here cpnginx.com that allows me to use nginx to serve static content and Apache to serve dynamic content. They use a method called Direct Push so that I'm still able to use my apache htaccess rules with the setup. Tonight I've run into a problem trying to add a new rule to my .htaccess file to redirect all my mobile traffic:

RewriteCond %{HTTP_USER_AGENT} (mobile|android|blackberry|brew|htc|j2me|lg|midp|mot|netfront|nokia|obigo|openweb|opera mini|palm|psp|samsung|sanyo|sch|sonyericsson|symbian|symbos|teleca|up.browser|wap|webos|windows ce) [NC]
RewriteRule ^(.*)$ http://url [R=302,L]

I'm constantly getting 500 internal server errors when I added this rule and the support at cpnginx.com isn't able to help me at all. Is there anyone out there that can provide me with some advice?

Thanks
Subject Author Posted

Running nginx as reverse proxy with Apache, rewrite problem

shellcrash March 18, 2011 02:42PM

Re: Running nginx as reverse proxy with Apache, rewrite problem

Dayo March 18, 2011 04:30PM

Re: Running nginx as reverse proxy with Apache, rewrite problem

António P. P. Almeida March 18, 2011 07:46PM

Re: Running nginx as reverse proxy with Apache, rewrite problem

shellcrash March 19, 2011 08:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 58
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready