<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Nginx Forum - Migration from Other Servers</title>
<description>Anything related to migrating to nginx, including rewrites</description><link>http://forum.nginx.org/list.php?9</link><lastBuildDate>Tue, 18 Jun 2013 22:04:09 -0400</lastBuildDate>
<generator>Phorum 5.2.16</generator>
<item>
<guid>http://forum.nginx.org/read.php?9,239561,239561#msg-239561</guid>
<title>Help with htaccess conversion. After conversion it's downloading a php file instead of redirecting (no replies)</title><link>http://forum.nginx.org/read.php?9,239561,239561#msg-239561</link><description><![CDATA[Hi,<br /><br />I just migrated one of my websites from apache and I'm having some problems with htaccess conversion.<br />Here is the htacces I had on apache that worked perfectly:<br /><br />Options +FollowSymlinks<br />RewriteEngine on<br /><br />RewriteRule ^feed.xml %{HTTP_SERVER}/feed.php [L]<br />RewriteRule ^sitemap.xml %{HTTP_SERVER}/sitemap.php [L]<br />RewriteRule ^tag/(.*) %{HTTP_SERVER}/tags.php?t=$1 [L]<br />RewriteRule ^type/(.*) %{HTTP_SERVER}/category.php?c=$1 [L]<br />RewriteRule ^about/(.*) %{HTTP_SERVER}/infos.php?s=$1 [L]<br /><br />And that's what I got after doign the conversion with http://winginx.com/htaccess and adding it to /etc/nginx/sites-available/mydomain.com:<br /><br /># nginx configuration<br /><br />location /feed {<br />rewrite ^/feed.xml /$http_server/feed.php break;<br />}<br /><br />location /sitemap {<br />rewrite ^/sitemap.xml /$http_server/sitemap.php break;<br />}<br /><br />location /tag {<br />rewrite ^/tag/(.*) /$http_server/tags.php?t=$1 break;<br />}<br /><br />location /type {<br />rewrite ^/type/(.*) /$http_server/category.php?c=$1 break;<br />}<br /><br />location /about {<br />rewrite ^/about/(.*) /$http_server/infos.php?s=$1 break;<br />}<br /><br /><br />After that I restarted nginx and php-fpm services but once I try to acces to one of those urls it downloads a file instead of doing the redirection. Could anyone help me to solve this?<br /><br />Thanks in advance,]]></description>
<dc:creator>titooo</dc:creator>
<category>Migration from Other Servers</category><pubDate>Mon, 27 May 2013 05:34:21 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,239556,239556#msg-239556</guid>
<title>How to convert Lighttpd rewrite to NGinx rewrite (no replies)</title><link>http://forum.nginx.org/read.php?9,239556,239556#msg-239556</link><description><![CDATA[Hi All,<br /><br />I have a problem in convert Lighttpd rules to Nginx rewrite<br /><br />This is my Lighttpd rules<br /><br />&quot;^/pthumb/([^\/]+)\/(.+)$&quot; =&gt; &quot;/pthumb/index.php?$1&amp;f=$2&quot;<br /><br />And this is Nginx Rewrite converted from above Lighttpd rules<br /><br />rewrite ^/pthumb/([^\/]+)\/(.+)$ /pthumb/index.php?$1&amp;f=$2<br /><br />But is not work.It very hard for me.<br /><br />Please help me convert this rules.]]></description>
<dc:creator>kingcasino</dc:creator>
<category>Migration from Other Servers</category><pubDate>Mon, 27 May 2013 03:26:28 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,239493,239493#msg-239493</guid>
<title>Nginx &amp; Wordpress (1 reply)</title><link>http://forum.nginx.org/read.php?9,239493,239493#msg-239493</link><description><![CDATA[Hello!<br /><br />I'm having a hard time with nginx &amp; wordpress. Specifically I installed/configured WP on http://www.busybabybook.com/blog/ and all seems to be ok EXCEPT for the fact that in the wp-admin/ I can't see: Media, Posts return an &quot;Invalid post type&quot;, there are no Pages (but in fact I have 2: Contact and About).<br /><br />Also, i would like to redirect www.busybabybook.com to www.busybabybook.com/blog/ but i've got no idea how to make this work without any problems in nginx.<br /><br />This is my vhost:<br />http://pastebin.com/ugvLMQYd<br /><br />Thank you in advance for helping out!<br />Regards,<br />Alex]]></description>
<dc:creator>alexandruv</dc:creator>
<category>Migration from Other Servers</category><pubDate>Fri, 24 May 2013 02:44:10 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,239378,239378#msg-239378</guid>
<title>How to migrate from Apache Tomcat 6.0 to Ngnix (no replies)</title><link>http://forum.nginx.org/read.php?9,239378,239378#msg-239378</link><description><![CDATA[Hi All<br /><br />I have web application which have been developed on top of Spring MVC framework and its deployed on Amazon Cloud. Now I would like to migrate to Ngnix Server. Could anyone suggest me the best methodology to achieve it?]]></description>
<dc:creator>vijaym</dc:creator>
<category>Migration from Other Servers</category><pubDate>Tue, 21 May 2013 05:23:12 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,239333,239333#msg-239333</guid>
<title>How covert this rules? (2 replies)</title><link>http://forum.nginx.org/read.php?9,239333,239333#msg-239333</link><description><![CDATA[How covert this rules? Autoconvert services can't help<br /><br />RewriteEngine on<br />RewriteBase /<br /><br />RewriteCond %{REQUEST_FILENAME} !-f<br />RewriteCond %{REQUEST_FILENAME} !-d<br />RewriteCond %{REQUEST_URI} ^([^\.]+)$<br />RewriteRule ^(.*[^/0-9]+)$ %{REQUEST_URI}/ [R,L]<br /><br /><br />RewriteCond %{REQUEST_FILENAME} !-f<br />RewriteCond %{REQUEST_FILENAME} !-d<br />RewriteRule (.*)$ index.php/$1 [QSA]<br /><br /><br />RewriteRule cart/add/?$ /templates/main/php/cart_add.php [QSA,L]<br />RewriteRule cart/edit/?$ /templates/main/php/cart_edit.php [QSA,L]<br />RewriteRule cart/delete/?$ /templates/main/php/cart_delete.php [QSA,L]<br /><br />RewriteRule catalog/podbor/?$ /catalog/category0/ [QSA,L]<br /><br /><br />RewriteRule logout/?$ /templates/main/php/logout.php [QSA,L]<br /><br />&lt;FilesMatch &quot;\.(inc)$&quot;&gt;<br />Order Deny,Allow<br />Deny from all<br />&lt;/FilesMatch&gt;<br /><br />Options -Indexes]]></description>
<dc:creator>lumb</dc:creator>
<category>Migration from Other Servers</category><pubDate>Tue, 21 May 2013 04:56:45 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,238803,238803#msg-238803</guid>
<title>Nginx1.2.8-JBoss5 vs Apache2.4 EventMPM-JBoss5 (no replies)</title><link>http://forum.nginx.org/read.php?9,238803,238803#msg-238803</link><description><![CDATA[I am comparing Nginx's performance to Apache2.4 EventMpm's.<br /><br />Four Jboss instances is load-balanced and proxied by upstream and proxy_pass in Nginx, and by mod_jk in Apache2.4.<br /><br />I am stress-testing increasing 1 vuser/sec up to 130 vusers for 10 minutes.<br /><br />I was supposed that Nginx's TPS is higher than Apache2.4, but the result is not.<br /><br />What I found one thing is that total requests amount from Nginx to JBoss is much lower than from Apache to JBoss.<br /><br />In Apache, one Jboss instance's currentThreadsBusy is abount 50,<br />but one Jboss instance's currentThreadsBusy is abount 25, half of Apache's case.<br /><br />Established connections between client and WebServer(Nginx or Apache) is almost the same.<br /><br />I think that incoming amount from Nginx to Jboss is lower and it makes lower TPS.<br /><br />Is there the way to make Nginx' TPS higher?<br /><br />The following is nginx.conf.<br /><br />worker_processes 2;<br /><br />events {<br />worker_connections 8192;<br />#multi_accept on;<br />}<br /><br />upstream myproject {<br />server xxx.xxx.xxx.xxx:8080;<br />server xxx.xxx.xxx.xxx:8180;<br />server yyy.yyy.yyy.yyy:8080;<br />server yyy.yyy.yyy.yyy:8180;<br />}<br /><br />location ~ \.jsp$ {<br />proxy_pass http://myproject;<br />proxy_set_header X-Real-IP $remote_addr;<br />proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br />proxy_set_header Host $http_host;<br />}<br /><br />location ~ \.mcifm$ {<br />proxy_pass http://myproject;<br />proxy_set_header X-Real-IP $remote_addr;<br />proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br />proxy_set_header Host $http_host;<br />}]]></description>
<dc:creator>howmanyi</dc:creator>
<category>Migration from Other Servers</category><pubDate>Thu, 02 May 2013 20:54:36 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,238702,238702#msg-238702</guid>
<title>Rewrite rules / apache &gt; nginx (downloads php files) (1 reply)</title><link>http://forum.nginx.org/read.php?9,238702,238702#msg-238702</link><description><![CDATA[Dear people,<br /><br />I'm stuck with a third party designed website that needs to run for a brief time on nginx (to improve the speed). There is a new site in development but for the time being it has to work. The current Apache rewrite config below:<br /><br />---<br />RewriteEngine on<br /><br />RewriteRule ^([A-Z]{2,3})/rss/(.*)/$ index.php?changelang=$1&amp;p=rss&amp;rsssub=$2 [L]<br />RewriteRule ^rss/(.*)/$ index.php?p=rss&amp;rsssub=$1 [L]<br /><br />#check if file exists<br />RewriteCond %{REQUEST_FILENAME} !-f<br />RewriteRule ^(.*)/scripts/(.*)$ scripts/$2 [NC,L]<br />RewriteRule ^(.*)/cats/(.*)$ cats/$2 [NC,L]<br />RewriteRule ^(.*)/cms/(.*)$ cms/$2 [NC,L]<br />RewriteRule ^(.*)/images/(.*)$ images/$2 [NC,L]<br />RewriteCond %{REQUEST_FILENAME} !-f<br />RewriteRule ^images/(.*)$ images/cp/geen_foto\.gif [NC,L]<br />RewriteRule ^(.*)/css/(.*)$ css/$2 [NC,L]<br />RewriteRule ^([A-Z]{2,3})/index\.php?(.*)$ index.php?changelang=$1&amp;pid=$2 [QSA,L]<br />RewriteRule ^index\.php?(.*)$ index.php?pid=$1 [QSA,L]<br />RewriteRule ^([A-Z]{2,3})/$ index.php?changelang=$1 [L]<br />RewriteRule ^([A-Z]{2,3})/(.*)\.html$ index.php?changelang=$1&amp;userurl=$2\.html [L]<br />RewriteRule ^(.*)\.html$ index.php?userurl=$1\.html [L]<br />RewriteRule ^([A-Z]{2,3})/(.*)/$ index.php?changelang=$1&amp;userurl=$2 [L]<br />RewriteRule ^(.*)/$ index.php?userurl=$1 [L]<br />RewriteRule ^(.*)/(.*)\.html$ index.php [L]<br />---<br /><br /><br />When I convert the rules I get:<br /><br />----<br />location / {<br />rewrite &quot;^/([A-Z]{2,3})/rss/(.*)/$&quot; /index.php?changelang=$1&amp;p=rss&amp;rsssub=$2 break;<br />if (!-e $request_filename){<br />rewrite ^/(.*)/scripts/(.*)$ /scripts/$2 break;<br />}<br />rewrite ^/(.*)/cats/(.*)$ /cats/$2 break;<br />rewrite ^/(.*)/cms/(.*)$ /cms/$2 break;<br />rewrite ^/(.*)/images/(.*)$ /images/$2 break;<br />if (!-e $request_filename){<br />rewrite ^/images/(.*)$ /images/cp/geen_foto\.gif break;<br />}<br />rewrite ^/(.*)/css/(.*)$ /css/$2 break;<br />rewrite &quot;^/([A-Z]{2,3})/index\.php?(.*)$&quot; /index.php?changelang=$1&amp;pid=$2 break;<br />rewrite &quot;^/([A-Z]{2,3})/$&quot; /index.php?changelang=$1 break;<br />rewrite &quot;^/([A-Z]{2,3})/(.*)\.html$&quot; /index.php?changelang=$1&amp;userurl=$2\.html break;<br />rewrite ^/(.*)\.html$ /index.php?userurl=$1\.html break;<br />rewrite &quot;^/([A-Z]{2,3})/(.*)/$&quot; /index.php?changelang=$1&amp;userurl=$2 break;<br />rewrite ^/(.*)/$ /index.php?userurl=$1 break;<br />rewrite ^/(.*)/(.*)\.html$ /index.php break;<br />}<br /><br />location /rss {<br />rewrite ^/rss/(.*)/$ /index.php?p=rss&amp;rsssub=$1 break;<br />}<br /><br />location /index {<br />rewrite ^/index\.php?(.*)$ /index.php?pid=$1 break;<br />}<br />----<br /><br />This results in non working rewrite rules and the PHP files are just being downloaded. I know If statements are not done and try_files must be used but I miss the expertise to correct this errors. Is there someone who can help me out with this?]]></description>
<dc:creator>StimpMedia</dc:creator>
<category>Migration from Other Servers</category><pubDate>Sun, 05 May 2013 16:49:12 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,238594,238594#msg-238594</guid>
<title>How do I implement to Apache &quot;AddType application/x-httpd-php&quot; ? (no replies)</title><link>http://forum.nginx.org/read.php?9,238594,238594#msg-238594</link><description><![CDATA[Hello.<br />I would like to work &quot;.html&quot; includes php code.<br /><br />------------------------------<br />When I use Apache I wrote:<br />AddType &quot;application/x-httpd-php&quot; .html<br /><br />------------------------------<br />I tried to write in php-fpm and Nginx:<br /><br />&lt;php-fpm&gt;<br />listen = /var/run/php-fpm.sock<br />security.limit_extensions = .php .html .htm<br /><br />&lt;nginx (backend.conf)&gt;<br />location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {<br />include /etc/nginx/expires;<br />log_not_found off;<br />}<br /><br />location ~ \.(php|html|htm|jpg)$ {<br /><br />expires off;<br />fastcgi_split_path_info ^(.+\.php)(/.+)$;<br />fastcgi_pass unix:/var/run/php-fpm.sock;<br />fastcgi_index index.php;<br />fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br />include fastcgi_params;<br />fastcgi_param REMOTE_ADDR $http_x_real_ip;<br />fastcgi_pass_header &quot;X-Accel-Redirect&quot;;<br />fastcgi_pass_header &quot;X-Accel-Buffering&quot;;<br />fastcgi_pass_header &quot;X-Accel-Charset&quot;;<br />fastcgi_pass_header &quot;X-Accel-Expires&quot;;<br />fastcgi_pass_header &quot;X-Accel-Limit-Rate&quot;;<br />}<br /><br />------------------------------<br />This config is something wrong.<br />When access this web site, my brouser shows html page. php code in html iw working fine.<br />but, images, javascripts, css files cannot access.<br /><br />LOG file :<br />2013/04/24 17:58:12 [crit] 4970#0: *41 open() &quot;/data/mypage/images/top4.jpg&quot; failed (1: Operation not permitted), client: unix:, server: mypage.com, request: &quot;GET /images/top4.jpg HTTP/1.0&quot;, host: &quot;mypage.com&quot;, referrer: &quot;http://mypage.com/&quot;<br /><br /><br />please help me.]]></description>
<dc:creator>90island</dc:creator>
<category>Migration from Other Servers</category><pubDate>Wed, 24 Apr 2013 05:17:07 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,238290,238290#msg-238290</guid>
<title>rewrite / to index.php and /admin to admin.php (no replies)</title><link>http://forum.nginx.org/read.php?9,238290,238290#msg-238290</link><description><![CDATA[Hello there,<br /><br />i have a problem. i have 2 php files index.php &amp; admin.php. I want to request the two files as follows:<br /><br />index.php:<br />/index.php/welcome/index/...<br />/welcome/index/...<br /><br />admin.php<br />/admin.php/welcome/index/...<br />/admin/welcome/index/...<br /><br />My config:<br />root /usr/share/nginx/www/foobar/;<br />index index.php index.html index.htm;<br /><br />location / {<br />try_files $uri $uri/ /index.php;<br />}<br /><br />location ~ .php/ {<br />rewrite ^(.*.php)/ $1;<br />}<br /><br />if (!-d $request_filename) {<br />rewrite ^/(.+)/$ /$1 permanent;<br />}<br /><br />error_page 500 502 503 504 /50x.html;<br />location = /50x.html {<br />root /usr/share/nginx/www/foobar;<br />}<br /><br />location ~ \.php$ {<br />fastcgi_pass unix:/var/run/php5-fpm.sock;<br />fastcgi_index index.php;<br />include fastcgi_params;<br />}<br /><br />location ~ /\.ht {<br />deny all;<br />}]]></description>
<dc:creator>patrickk</dc:creator>
<category>Migration from Other Servers</category><pubDate>Thu, 11 Apr 2013 07:40:05 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,238246,238246#msg-238246</guid>
<title>tine20 how to translate apache rewrites? (no replies)</title><link>http://forum.nginx.org/read.php?9,238246,238246#msg-238246</link><description><![CDATA[Hi forumers,<br /><br />I'm trying to get tine20 running under nginx but I don't know how to translate apache rewrites:<br /><br /># ActiveSync<br />RewriteRule ^Microsoft-Server-ActiveSync index.php?frontend=activesync [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]<br /><br /># WebDAV / CalDAV / CardDAV<br />RewriteCond %{REQUEST_METHOD} !^(GET|POST)$<br />RewriteRule ^$ index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]<br /><br />RewriteRule ^addressbooks index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]<br />RewriteRule ^calendars index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]<br />RewriteRule ^webdav index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]<br />RewriteRule ^principals index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]<br /><br />I have no idea for lines above.<br /><br /><br /># OpenID<br />RewriteRule ^users/(.*) index.php?frontend=openid&amp;username=$1 [L,QSA]<br /><br />For this last line, Is this correct? (root is /usr/share, tine20 is /usr/share/tine20)<br />rewrite ^/tine20/users/(.*) index.php?frontend=openid&amp;username=$1;]]></description>
<dc:creator>Jiff</dc:creator>
<category>Migration from Other Servers</category><pubDate>Tue, 09 Apr 2013 19:33:26 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,238243,238243#msg-238243</guid>
<title>I can not get the cumulusclips to upload video &amp; picture (no replies)</title><link>http://forum.nginx.org/read.php?9,238243,238243#msg-238243</link><description><![CDATA[before I used Apache web server but yesterday I nginx replace Apache;<br />my cms is cumulusclips;<br />www.cumulusclips.org<br /><br />I can not get the cumulusclips cms to upload video &amp; picture;<br /><br />help me;]]></description>
<dc:creator>kavosh63</dc:creator>
<category>Migration from Other Servers</category><pubDate>Tue, 09 Apr 2013 15:46:30 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,238190,238190#msg-238190</guid>
<title>Proper way to redirect on specific countries with GeoIP (1 reply)</title><link>http://forum.nginx.org/read.php?9,238190,238190#msg-238190</link><description><![CDATA[I have GeoIP working on my sites in the actual pages, I have enabled it my nginx.conf file<br /><br />http {<br />set_real_ip_from 127.0.0.1;<br />real_ip_header X-Forwarded-For;<br /># GEO<br />geoip_country /etc/nginx/geoip/GeoIP.dat;<br />geoip_city /etc/nginx/geoip/GeoLiteCity.dat;<br />}<br /><br />Defined in my fastcgi_params<br /><br />fastcgi_param GEOIP_COUNTRY_CODE $geoip_country_code;<br />fastcgi_param GEOIP_COUNTRY_CODE3 $geoip_country_code3;<br />fastcgi_param GEOIP_COUNTRY_NAME $geoip_country_name;<br />fastcgi_param GEOIP_CITY_COUNTRY_CODE $geoip_city_country_code;<br />fastcgi_param GEOIP_CITY_COUNTRY_CODE3 $geoip_city_country_code3;<br />fastcgi_param GEOIP_CITY_COUNTRY_NAME $geoip_city_country_name;<br />fastcgi_param GEOIP_REGION $geoip_region;<br />fastcgi_param GEOIP_CITY $geoip_city;<br />fastcgi_param GEOIP_POSTAL_CODE $geoip_postal_code;<br />fastcgi_param GEOIP_CITY_CONTINENT_CODE $geoip_city_continent_code;<br />fastcgi_param GEOIP_LATITUDE $geoip_latitude;<br />fastcgi_param GEOIP_LONGITUDE $geoip_longitude;<br /><br />What I am trying to do but can't figure out how to with NGINX is to catch any incoming hit to the server regardless of the domain or subdomain to redirect to a specific link. I have been trying what I can find online, which most point to using, if's which from my understanding should be avoided. So I am trying to sort out the actual proper method. I have Varnish on my front end<br /><br />So say someone from Germany hits the server, I want NGINX to be able to catch the request and redirect to a specific page all the rest work as normal. I am thinking if I add something after my define in http in the nginx.conf file would be the best place to catch it.<br /><br />Thank you for any help on this and if I need to post more about my config let me know.]]></description>
<dc:creator>vwyoda</dc:creator>
<category>Migration from Other Servers</category><pubDate>Sun, 05 May 2013 17:27:43 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,237692,237692#msg-237692</guid>
<title>HTTP 499 timeouts. NginX and PHP-FPM (2 replies)</title><link>http://forum.nginx.org/read.php?9,237692,237692#msg-237692</link><description><![CDATA[Hi everyone, I am hoping that someone on here can help me sovle this before I'm forced to move back to Apache where I know this just works.<br /><br />I have a PHP script which can take a 3 minutes to execute and which runs fine from the command-line using php. however, when I trigger the script from a web page, I receive a HTTP 499 response within the nginx access logs 60 seconds after the request is made.<br /><br />Reading around online I've made the following NginX config changes to try to force the server to run for more than 60 seconds:<br />- Within the location directive<br />fastcgi_send_timeout 1200;<br />fastcgi_read_timeout 1200;<br />fastcgi_connect_timeout 1200<br /><br />- Within the server directive<br />client_header_timeout 1200;<br />client_body_timeout 1200;<br />keepalive_timeout 600;<br /><br />On the PHP side, I've set the php-fpm config setting to include:<br /><br />request_terminate_timeout = 1200s<br />request_terminate_timeout = 0<br /><br />On the main PHP.ini side I've set:<br /><br />max_execution_time = 1200<br />default_socket_timeout = 1200<br />mysql.connect_timeout = 1200<br /><br />When I run a phpinfo() on the webserver I can see all of these PHP config settings have been picked up and yet still when I run the script I receive the HTTP/1.1 499 response after only 60 seconds.<br /><br />The script has been successfully run against:<br />1. The PHP cli<br />2. The PHP-CGI cli<br />3. Apache 2.4.2<br /><br />I'm running NginX 1.1.19 and PHP 5.4.11<br /><br />I've exhausted everything I can think off, and all of my searches online turn up either unanswered questions or point to increasing the fast_cgi settings within the Nginx which I have done witihn the sites-enabled/ config.<br /><br />Sadly if I can't find a solution soon, I will have to ditch NginX for this project, so any help would be greatly appreciated]]></description>
<dc:creator>TFATM</dc:creator>
<category>Migration from Other Servers</category><pubDate>Mon, 25 Mar 2013 14:15:22 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,237595,237595#msg-237595</guid>
<title>Convert rewrite from apache to nginx (1 reply)</title><link>http://forum.nginx.org/read.php?9,237595,237595#msg-237595</link><description><![CDATA[Hello,<br /><br />I have this .htaccess file in my apache configuration:<br />RewriteCond %{REQUEST_FILENAME} -f [OR]<br />RewriteCond %{REQUEST_FILENAME} -l [OR]<br />RewriteCond %{REQUEST_FILENAME} -d<br />RewriteRule ^.* - [L]<br /><br />RewriteRule ^(.*)/(.*)_image.jpg http://example.com/page.html [L]<br />RewriteRule ^(.*)/(.*)_(.*).jpg http://example.com/page.html [L]<br /><br />Can you please convert this rules to nginx? Thanks.]]></description>
<dc:creator>asdfg</dc:creator>
<category>Migration from Other Servers</category><pubDate>Mon, 06 May 2013 06:56:04 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,237466,237466#msg-237466</guid>
<title>RemoveHandler in nginx (no replies)</title><link>http://forum.nginx.org/read.php?9,237466,237466#msg-237466</link><description><![CDATA[in my website users can upload their files and have a short url of that files. before this i used apache webserver but now i want to switch to nginx.<br /><br />in apache i used this snippet to remove php handler for some directory that files are upload to that :<br /><br />&lt;Directory /var/www/unkown-user-data/uploads&gt;<br />RemoveHandler .php .phtml .php3 .php5<br />RemoveType .php .phtml .php3 .php5<br />php_flag engine off<br />AddHandler default-handler .php<br />&lt;/Directory&gt;<br /><br />but now, how should am i do this on nginx webserver ?]]></description>
<dc:creator>mahdi</dc:creator>
<category>Migration from Other Servers</category><pubDate>Sun, 17 Mar 2013 18:47:24 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,237352,237352#msg-237352</guid>
<title>Loss of 20ms after migrating from Lighttpd to NGINX (no replies)</title><link>http://forum.nginx.org/read.php?9,237352,237352#msg-237352</link><description><![CDATA[Hi everyone,<br /><br />we want to migrate many many webservers from lighttpd/1.4.28 to NGINX/1.2.7. After migrating some smaller webservers we saw a significant increase of about 20ms (sometimes more, sometimes less) on the response times.<br /><br />We are using scgi and php5-fpm, we also do only log the response times of scgi, so fpm can also be ignored in this equation.<br /><br />As there is no &quot;tweaking&quot; of our side for scgi i wanted to ask you if you can imagine any settings we should use.<br /><br />location ~ ^/($|some|stuff) {<br />include scgi_params;<br /><br />#scgi_buffer_size 4K;<br />#scgi_buffers 512 4k;<br />scgi_pass our_sockets;<br />}<br /><br />upstream our_sockets {<br />least_conn;<br /><br />server unix:/tmp/our.socket.for_nginx.1 max_fails=3 fail_timeout=5s;<br />[..14 times]<br />}<br /><br />We think that a part of the problem is the db-query time, because regarding our graphs, after an upgrade the response time of the DB increases, see attachments. For some reason nginx seems to handle this in a completly other way than lighttpd, and i can't find any solution for this. :(<br /><br /><br />The attached gamestat_queries-daily.png shows you the increase in response time (Thu 11:00) of the db querys, note that the querys per second didn't increased.<br /><br />The gamestat-daily.png shows you also the response time of Site-Requests, be careful here, the db-time is already included in site-time.<br /><br /><br /><br />Old Environment is:<br />Webservers:<br />Debian Squeeze<br />Lighttpd/1.4.28 =&gt; NGINX/1.2.7<br />php/5.3.13<br />Usage of fastcgi/scgi =&gt; php-fpm/scgi<br /><br />DB-Server:<br />Debian Squeeze<br />postgresql 9.0.6<br /><br /><br /><br />regards<br />Bernhard]]></description>
<dc:creator>bschrader</dc:creator>
<category>Migration from Other Servers</category><pubDate>Thu, 14 Mar 2013 09:31:25 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,237191,237191#msg-237191</guid>
<title>banging head against the wall with rewrite (1 reply)</title><link>http://forum.nginx.org/read.php?9,237191,237191#msg-237191</link><description><![CDATA[On my test setup I succeeded with the setup but now I am banging my head against the wall with this.<br /><br />The directory is /backoffice and the working .htaccess rules are.<br /><br />===<br />Options -Multiviews<br /><br />RewriteEngine On<br />RewriteBase /backoffice/<br />RewriteRule ^([-_a-zA-Z0-9]+)/([-_a-zA-Z0-9]+)//([-_a-zA-Z0-9]+)/$ dispatch.php?page=$1&amp;action=$2&amp;id=$3 [QSA] [L]<br />RewriteRule ^([-_a-zA-Z0-9]+)/([-_a-zA-Z0-9]+)/([-_a-zA-Z0-9]+)$ dispatch.php?page=$1&amp;action=$2&amp;id=$3 [QSA] [L]<br />RewriteRule ^([-_a-zA-Z0-9]+)/([-_a-zA-Z0-9]+)/$ dispatch.php?page=$1&amp;action=$2 [QSA] [L]<br />RewriteRule ^([-_a-zA-Z0-9]+)/([-_a-zA-Z0-9]+)$ dispatch.php?page=$1&amp;action=$2 [QSA] [L]<br />RewriteRule ^([-_a-zA-Z0-9]+)/$ dispatch.php?page=$1&amp;action= [QSA] [L]<br />RewriteRule ^([-_a-zA-Z0-9]+)$ /backoffice/$1/ [R]<br />RewriteRule ^$ dispatch.php [QSA] [L]<br />===<br /><br />Example:<br />/backoffice/skapa/ /backoffice/skapa.php<br /><br />/S]]></description>
<dc:creator>skogsmannen</dc:creator>
<category>Migration from Other Servers</category><pubDate>Mon, 11 Mar 2013 08:23:49 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,237170,237170#msg-237170</guid>
<title>Cannot get simple rewrite rules working in subdirectory (1 reply)</title><link>http://forum.nginx.org/read.php?9,237170,237170#msg-237170</link><description><![CDATA[We are trying to move a photopost installation from Apache to nginx and are having difficulties with the rewrite rules. Photopost provides some VERY basic rewrite rules for Apache and we have tried to convert them to nginx but apparently have failed miserably. Here are the .htaccess rules:<br /><br />RewriteEngine on<br />Options +FollowSymLinks<br /><br />#RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f<br />#RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d<br /><br />RewriteRule ^(.*)/p([0-9]+)-(.*)-page([0-9+]).html$ showproduct.php?product=$2&amp;cpage=$4 [L]<br />RewriteRule ^(.*)/p([0-9]+)-(.*).html$ showproduct.php?product=$2 [L]<br />RewriteRule ^(.*)/p([0-9]+).html$ showproduct.php?product=$2 [L]<br /><br />RewriteRule ^g([0-9]+)-(.*)-page([0-9]+).html$ showcat.php?cat=$1&amp;page=$3 [L]<br />RewriteRule ^g([0-9]+)-(.*).html$ showcat.php?cat=$1 [L]<br /><br />RewriteRule ^(.*)/index([0-9]+)-([0-9]+).html$ index.php?cat=$2&amp;page=$3 [L]<br />RewriteRule ^(.*)/index([0-9]+).html$ index.php?cat=$2 [L]<br /><br />RewriteRule ^m([0-9]+)-(.*)-protype([0-9]+).html$ member.php?uid=$1&amp;protype=$3 [L]<br />RewriteRule ^m([0-9]+)-(.*).html$ member.php?uid=$1 [L]<br /><br />RewriteRule ^board.html$ board.php [L]<br />RewriteRule ^b([0-9]+)-(.*).html$ board.php?msg=$1 [L]<br /><br />RewriteRule ^u([0-9]+)-(.*)-page([0-9]+).html$ showcat.php?ppuser=$1&amp;page=$3 [L]<br />RewriteRule ^u([0-9]+)-(.*).html$ showcat.php?ppuser=$1 [L]<br /><br />RewriteRule ^s([0-9]+)-(.*)-page([0-9]+).html$ showmembers.php?cat=$1&amp;page=$3 [L]<br />RewriteRule ^s([0-9]+)-(.*).html$ showmembers.php?cat=$1 [L]<br /><br /><br /><br />This is what we converted them to for nginx:<br /><br />location /classifieds/ {<br /><br />rewrite ^/classifieds/(.*)/p([0-9]+)-(.*)-page([0-9+]).html$ /classifieds/showproduct.php?product=$2&amp;cpage=$4 permanent;<br />rewrite ^/classifieds/(.*)/p([0-9]+)-(.*).html$ /classifieds/showproduct.php?product=$2 permanent;<br />rewrite ^/classifieds/(.*)/p([0-9]+).html$ /classifieds/showproduct.php?product=$2 permanent;<br /><br />rewrite ^/classifieds/g([0-9]+)-(.*)-page([0-9]+).html$ /classifieds/showcat.php?cat=$1&amp;page=$3 permanent;<br />rewrite ^/classifieds/g([0-9]+)-(.*).html$ /classifieds/showcat.php?cat=$1 permanent;<br /><br />rewrite ^/classifieds/(.*)/index([0-9]+)-([0-9]+).html$ /classifieds/index.php?cat=$2&amp;page=$3 permanent;<br />rewrite ^/classifieds/(.*)/index([0-9]+).html$ /classifieds/index.php?cat=$2 permanent;<br /><br />rewrite ^/classifieds/m([0-9]+)-(.*)-protype([0-9]+).html$ /classifieds/member.php?uid=$1&amp;protype=$3 permanent;<br />rewrite ^/classifieds/m([0-9]+)-(.*).html$ /classifieds/member.php?uid=$1 permanent;<br /><br />rewrite ^/classifieds/board.html$ /classifieds/board.php permanent;<br />rewrite ^/classifieds/b([0-9]+)-(.*).html$ /classifieds/board.php?msg=$1 permanent;<br /><br />rewrite ^/classifieds/u([0-9]+)-(.*)-page([0-9]+).html$ /classifieds/showcat.php?ppuser=$1&amp;page=$3 permanent;<br />rewrite ^/classifieds/u([0-9]+)-(.*).html$ /classifieds/showcat.php?ppuser=$1 permanent;<br /><br />rewrite ^/classifieds/s([0-9]+)-(.*)-page([0-9]+).html$ /classifieds/showmembers.php?cat=$1&amp;page=$3 permanent;<br />rewrite ^/classifieds/s([0-9]+)-(.*).html$ /classifieds/showmembers.php?cat=$1 permanent;<br />}<br /><br />However, these rules are not working for us and only result in a 404. Can anyone shed any light on where we're going wrong here?]]></description>
<dc:creator>Kevin C</dc:creator>
<category>Migration from Other Servers</category><pubDate>Mon, 06 May 2013 08:06:56 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,237048,237048#msg-237048</guid>
<title>SSL-Connection is redirected to port 80 (no replies)</title><link>http://forum.nginx.org/read.php?9,237048,237048#msg-237048</link><description><![CDATA[Hello everybody,<br /><br />I'm currently trying to migrate from an physical apache server, serving as frontendserver for a few tomcats to a virtualized nginx and a view tomcats running in virtual machines.<br />Everything seems to work fine, as long as there is no switch from https to http. The application I need to run on the tomcats serves an loginpage by http, but the post-request when you click &quot;login&quot; is ssl-encrypted. If someone misspelled the password or username, he gets an error-page, which seems to be serverd by http. Whenever i watch what is going on with e.g. Firebug, I can see a https postrequest after klicking login (with wrong password) and afterwards getting http-status 302 and an redirect to something like http://www.example.com/some/errorpage?parms=value&amp;ohter=othervalue. This is how it works with apache2 as proxy. Using nginx results in an redirect to something like this: https://www.example.com:80/some/errorpage?parms=value&amp;ohter=othervalue. This results in an SSL-Error and Firefox tells &quot;error code: ssl_error_rx_record_too_long&quot;.<br />Any hint would be apreciated.<br />My config is posted in the attachment.<br /><br />Greetings<br />Belenor]]></description>
<dc:creator>Belenor</dc:creator>
<category>Migration from Other Servers</category><pubDate>Thu, 07 Mar 2013 05:46:10 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,236891,236891#msg-236891</guid>
<title>need help to convert .htaccess to nginx rules (no replies)</title><link>http://forum.nginx.org/read.php?9,236891,236891#msg-236891</link><description><![CDATA[My htaccess content .<br /><br />&lt;Files *.htm&gt;<br />#Compress<br />SetOutputFilter DEFLATE<br />&lt;/Files&gt;<br />Options +FollowSymLinks<br />RewriteEngine on<br />RewriteBase /<br /># please use .php at url for admin<br />RewriteRule ^recent-articles-feed rss.php [NC]<br />RewriteRule ^rss/([^/]+) rss.php?q=$1 [NC]<br /><br /># To ignore htaccess - enlist here<br />RewriteCond $1 !^(index\.php|ftpservice|demo|ftpdb|MDF|phpsysinfo|admin|templates|links|api|forum|<br />articles|imageGallery|language|includes|ajax|resources|fonts|images|parse|directory|uploads|system|<br />rss\.php|robots\.txt|sitemap\.php|Sitemap\.xml|sitemap\.xml|sitemap2\.xml|urllist\.txt)<br /><br /><br />RewriteRule ^(.*) index.php [NC]]]></description>
<dc:creator>onel0ve</dc:creator>
<category>Migration from Other Servers</category><pubDate>Mon, 04 Mar 2013 03:19:13 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,236354,236354#msg-236354</guid>
<title>Migrated custom WP site, some stuff not working (1 reply)</title><link>http://forum.nginx.org/read.php?9,236354,236354#msg-236354</link><description><![CDATA[We have a custom WP site that we are having to migrate from Apache to nginx and while most things are working ok, some big things are not.<br /><br />For example on our custom plugin our url structure looks like this: domain.com/causes-details/PERMALINK ; PERMALINK is the field we use in the db to populate the cause information. In wordpress that is just a page with no content and a special theme page.<br /><br />It works fine in apache, it doesn't work at all in nginx. We get a null page.<br /><br />In the root directory on the apache site there is an .htaccess file that looks like this:<br /><br />&lt;IfModule mod_rewrite.c&gt;<br />RewriteEngine On<br />RewriteBase /<br />RewriteRule ^index\.php$ - [L]<br />RewriteCond %{REQUEST_FILENAME} !-f<br />RewriteCond %{REQUEST_FILENAME} !-d<br />RewriteRule . /index.php [L]<br />&lt;/IfModule&gt;<br /><br />So I tossed it into a converter http://www.anilcetin.com/convert-apache-htaccess-to-nginx/ and I get<br /><br />if (-e $request_filename){<br />set $rule_0 1;<br />}<br />if ($request_filename ~ &quot;-l&quot;){<br />set $rule_0 1;<br />}<br />if (-d $request_filename){<br />set $rule_0 1;<br />}<br />if ($rule_0 = &quot;1&quot;){<br />#ignored: &quot;-&quot; thing used or unknown variable in regex/rew<br />}<br />rewrite ^/.*$ /index.php last;<br /><br />But that doesn't really fix anything on the site. So without that in there, this is what my nginx config looks like:<br /><br />server {<br />listen 80;<br />root /usr/share/nginx/html/domain.com;<br />index index.php index.html index.htm;<br />server_name domain.com www.domain.com;<br />location / {<br />try_files $uri $uri/ /index.php?args;<br />}<br />location ~ /\. { access_log off; log_not_found off; deny all; }<br />location ~ ~$ { access_log off; log_not_found off; deny all; }<br />location ~ \.php$ {<br />try_files $uri $uri/ /index.php?args;<br />include fastcgi_params;<br />fastcgi_pass php5-fpm-sock;<br />fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br />fastcgi_intercept_errors on;<br />}<br />}]]></description>
<dc:creator>Rosewood</dc:creator>
<category>Migration from Other Servers</category><pubDate>Tue, 07 May 2013 08:05:17 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,236106,236106#msg-236106</guid>
<title>is it possible to run xt-commerce on nginx? (1 reply)</title><link>http://forum.nginx.org/read.php?9,236106,236106#msg-236106</link><description><![CDATA[I googled for hours but can't find an answer to this question. Checking the requirements to run xt-comerce: http://www.xt-commerce.co.uk/shop-software/functions/system-requirements.html I'd say it is definitely possible and my server fullfills all of those requirements yet no luck.<br /><br />Basically I'm moving an existing xt-commerce site onto a new server - it was previously hosted on apache2 so I attempted to convert the working .thaccess file:<br /><br />DirectoryIndex index.php<br /><br />RewriteEngine on<br /><br />RewriteCond %{REQUEST_URI} !^/media/<br />RewriteCond %{REQUEST_URI} !^/extAdmin/<br />RewriteCond %{REQUEST_URI} !^/skin/<br />RewriteCond %{REQUEST_URI} !^/js/<br />RewriteCond %{REQUEST_FILENAME} !-f<br />RewriteCond %{REQUEST_FILENAME} !-d<br />RewriteCond %{REQUEST_FILENAME} !-l<br /><br />RewriteRule .* index.php<br /><br /><br />into<br /><br />if ($uri !~ &quot;^/media/&quot;){<br />set $rule_0 1$rule_0;<br />}<br />if ($uri !~ &quot;^/extAdmin/&quot;){<br />set $rule_0 2$rule_0;<br />}<br />if ($uri !~ &quot;^/skin/&quot;){<br />set $rule_0 3$rule_0;<br />}<br />if ($uri !~ &quot;^/js/&quot;){<br />set $rule_0 4$rule_0;<br />}<br />if (!-f $request_filename){<br />set $rule_0 5$rule_0;<br />}<br />if (!-d $request_filename){<br />set $rule_0 6$rule_0;<br />}<br />if ($request_filename !~ &quot;-l&quot;){<br />set $rule_0 7$rule_0;<br />}<br />if ($rule_0 = &quot;7654321&quot;){<br />rewrite /.* /index.php;<br />}<br /><br /><br />but no luck so far. All I can find in nginx's error log is this:<br /><br />2013/02/11 17:49:34 [crit] 308390#0: *78 open() &quot;/var/www/saimafashion.com/web/&quot; failed (13: Permission denied), client: 41.185.135.5, server: saimafashion.com, request: &quot;GET / HTTP/1.1&quot;, host: &quot;www.saimafashion.com&quot;<br /><br />And if I open http://www.saimafashion.com/ you can see the error for yourself...<br /><br />Anyone able to help me out here?]]></description>
<dc:creator>ovidiu</dc:creator>
<category>Migration from Other Servers</category><pubDate>Tue, 12 Feb 2013 03:50:46 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,236027,236027#msg-236027</guid>
<title>Is Tomcat compatible? (2 replies)</title><link>http://forum.nginx.org/read.php?9,236027,236027#msg-236027</link><description><![CDATA[Hello all,<br /><br />I'm a java developer and we use Tomcat as web container. I am very impressed with Nginx and would like to make use of it. Can Tomcat be somehow be integrated with nginx? Will there be improvement in performance? If Tomcat can be integrated into Nginx, is there a documentation I can read?<br /><br />Thanks,<br />Victor.]]></description>
<dc:creator>victorsk</dc:creator>
<category>Migration from Other Servers</category><pubDate>Fri, 26 Apr 2013 09:52:52 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,235996,235996#msg-235996</guid>
<title>[emerg] unknown directive &quot;server&quot; (no replies)</title><link>http://forum.nginx.org/read.php?9,235996,235996#msg-235996</link><description><![CDATA[i am newbie to this NGINX i am installing this MGINX in VPS. my url is : gicsms.com<br />installing ryby script<br /><br />1. while installing NGINX using this command $/usr/bin/passenger-install-nginx-module<br />i am geting this eror<br /><br />+ Linux 2.6.32-279.11.1.el6.i686 i686<br />checking for C compiler ... not found<br /><br />./configure: error: C compiler gcc is not found<br /><br />--------------------------------------------<br /><br />It looks like something went wrong<br /><br /><br />i have update c compailter but it is getting this error..<br /><br /><br />i have solved this using manuel iinstallation or source installation<br /><br />2. my main problem is that mginx is not started<br /><br /><br />$service nginx start (i am using this command to start server)<br /><br />it is getting this error..<br />Starting nginx: nginx: [emerg] unknown directive &quot;server&quot; in /etc/nginx/nginx.conf:45 [FAILED]<br /><br /><br />nignx.conf --------is below<br /><br /># For more information on configuration, see:<br /># * Official English Documentation: http://nginx.org/en/docs/<br /># * Official Russian Documentation: http://nginx.org/ru/docs/<br /><br />user nobody;<br />worker_processes 1;<br /><br />error_log /var/log/nginx/error.log;<br />#error_log /var/log/nginx/error.log notice;<br />#error_log /var/log/nginx/error.log info;<br /><br />pid /var/run/nginx.pid;<br /><br /><br />events {<br />worker_connections 1024;<br />}<br /><br /><br />http {<br />include /etc/nginx/mime.types;<br />default_type application/octet-stream;<br /><br />log_format main '$remote_addr - $remote_user [$time_local] &quot;$request&quot; '<br />'$status $body_bytes_sent &quot;$http_referer&quot; '<br />'&quot;$http_user_agent&quot; &quot;$http_x_forwarded_for&quot;';<br /><br />access_log /var/log/nginx/access.log main;<br /><br />sendfile on;<br /># tcp_nopush on;<br /><br />#keepalive_timeout 0;<br />keepalive_timeout 65;<br /><br />#gzip on;<br /><br /># Load config files from the /etc/nginx/conf.d directory<br /># The default server is in conf.d/default.conf<br />include /etc/nginx/conf.d/*.conf;<br /><br />}<br /><br /><br />server {<br />listen 80;<br />listen gicsms.com:80;<br />server_name gicsms.com;<br />root/srv/www/gicsms.com/public_html/fedena/public/;<br />access_log/srv/www/gicsms.com/access.log;<br />error_log/srv/www/gicsms.com/logs/error.log;<br />passenger_enabled on;<br />}<br /><br /><br />my url is : gicsms.com<br />installing ryby script..<br /><br />any one have the solution can be appriciated.<br />thankyou.]]></description>
<dc:creator>hellodaybyday</dc:creator>
<category>Migration from Other Servers</category><pubDate>Thu, 07 Feb 2013 12:57:42 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,235994,235994#msg-235994</guid>
<title>Clean URL with slash arguments? (2 replies)</title><link>http://forum.nginx.org/read.php?9,235994,235994#msg-235994</link><description><![CDATA[Hey,<br /><br />Apache (at least apache2) seems to do this automatically on default, but I have tried to figure out how to mimic it under Nginx for serveral days now. Maybe this is the place where someone has the answer how to do this:<br /><br />1) I have for example http://localhost/user/edit.php<br />2) I have for example http://localhost/admin/organization/edit.php<br /><br />Both take several get-parameters and if they get them in &quot;slash format&quot;, it's ok (I'm using my own MVC framework).<br /><br />I would like to have a) clean urls (no .php extension) and slash arguments at the same time, so that:<br /><br />1) http://localhost/user/edit/id/1 would work<br />2) http://localhost/admin/organization/edit/id/1/something/else works<br /><br />The problem for me is, that with &quot;try_files&quot; or &quot;rewrite&quot; and/or regex in &quot;fastcgi_split_path_info&quot; it's hard to detect, which part is the actual script and which are the get-parameters.<br /><br />A beer at our local bar for the friendly person who helps me out here (in Helsinki Finland)! ;)<br /><br />Thanks,<br />Olli]]></description>
<dc:creator>oo</dc:creator>
<category>Migration from Other Servers</category><pubDate>Sun, 03 Mar 2013 15:17:12 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,235871,235871#msg-235871</guid>
<title>Moved from Apache, now redirect is broken (1 reply)</title><link>http://forum.nginx.org/read.php?9,235871,235871#msg-235871</link><description><![CDATA[I am trying to migrate all my sites to NGINX from apache2. One of my sites does a cloaking of the link in a button, which sends them to a page with just a simple redirect.<br /><br />With Apache2 it just worked, now with NGINX it just hangs on the redirect, but if I type out the full URL path where the redirect file is it works. So seems like NGINX is doing something I am not getting yet.<br /><br />Here is the code in case this is actually the cause...<br /><br /><br />index.php - Where the continue button is.. This is only the continue button code.<br />&lt;div id=&quot;continue_button_container&quot;&gt;<br />&lt;a href=&quot;&lt;?php echo OFFER_LINK; ?&gt;&quot;&gt;<br />&lt;img alt=&quot;continue button&quot; src=&quot;&lt;?php echo CONTINUE_BUTTON_SRC;?&gt;&quot; /&gt;<br />&lt;/a&gt;<br />&lt;/div&gt;<br /><br />Here is the actual redirect in the file that it is sending this to.<br />&lt;?php<br />require_once &quot;../php/config.php&quot;;<br />header(&quot;Location: &quot;.DESTINATION);<br /><br />In config.php DESTINATION is set to http://google.com .. When its hit, just hangs trying to connect then eventually times out.<br /><br />Any help is greatly appriciated. If I need to post my configs as well, just let me know which ones and I will gladly post them. Also sorry I can't seem to get [code][/code] tags to work for the post.]]></description>
<dc:creator>vwyoda</dc:creator>
<category>Migration from Other Servers</category><pubDate>Sun, 03 Feb 2013 19:49:48 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,235861,235861#msg-235861</guid>
<title>rewrite upper to lowercase (no replies)</title><link>http://forum.nginx.org/read.php?9,235861,235861#msg-235861</link><description><![CDATA[Hey,<br />i switched today from apache2 to nginx. Now im looking for away to rewrite all upercase letter to lowercase. on apache i used:<br /><br />RewriteEngine on<br />RewriteCond %{REQUEST_URI} [A-Z]<br />RewriteRule (.*) ${lc:$1} [L,R=301]<br />RewriteBase /dir/]]></description>
<dc:creator>^fishxz</dc:creator>
<category>Migration from Other Servers</category><pubDate>Sat, 02 Feb 2013 16:09:53 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,235590,235590#msg-235590</guid>
<title>Apache rewriterule to nginx rewriterule (2 replies)</title><link>http://forum.nginx.org/read.php?9,235590,235590#msg-235590</link><description><![CDATA[Hello,<br />I moved my website from cPanel server with Apache to IspConfig3 server with nginx.<br />My problem is that these current lines for mod_rewrite don't work in nginx...<br /><br />RewriteEngine on<br />RewriteRule ^blog/(.*)/?$ /blogview.php?id=$1<br />RewriteRule ^blog/category/(.*)/?$ /blog_category.php?id=$1<br />Options -Indexes<br /><br />Can anyone help me ?<br />Sorry for my English... :)]]></description>
<dc:creator>bobsona1</dc:creator>
<category>Migration from Other Servers</category><pubDate>Tue, 07 May 2013 07:56:08 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,234978,234978#msg-234978</guid>
<title>Switch from Apache 1.3.x to NGinx (1 reply)</title><link>http://forum.nginx.org/read.php?9,234978,234978#msg-234978</link><description><![CDATA[Hello,<br /><br />I'm using Apache 1.3.x along with gzip, url rewriting, php, mod expires and ssl.<br />I've started to work on my NGinx configuration with gzip modules according to the documentation and I think I'll be ok with that.<br /><br />I would like to know how to replaces mod expires. I have now a .htaccess in each directory containing the configuration<br />ExpiresActive on<br />ExpiresDefault A60<br />ExpiresByType image/gif A2592000<br />ExpiresByType image/jpeg A2592000<br /><br />Could you confirm that I have to use the module HttpHeadersMoreModule ?<br /><br />Also, it seems that the configuration for this behavior is very centralised into the nginx.conf file. What do you suggest to have a different &quot;expires&quot; depending on the directory. With Apache it's easy, you place the .htaccess within the directory.<br /><br />Thank you]]></description>
<dc:creator>miky</dc:creator>
<category>Migration from Other Servers</category><pubDate>Tue, 07 May 2013 08:19:59 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?9,234202,234202#msg-234202</guid>
<title>Magento Rewritebase (no replies)</title><link>http://forum.nginx.org/read.php?9,234202,234202#msg-234202</link><description><![CDATA[Hello,<br /><br />First off all, I love your product :-) I am setting up my test system with nginx and magento is a lot faster with nginx.<br />Thanks for that. I have one problem where I would like some help if possible.<br /><br />In my magento setup I have 2 stores, one dutch and one german for example.<br />The dutch one is the default and works fine. The second store is the same URL but with /de at the end.<br />In apache I just created a folder /de with symlinks to the correct magento folder, added a .htaccess with below and<br />it would work. With nginx the first page is working, but any page after that is a 404, I think because of the rewritebase /de<br /><br />How should I do that with nginx?<br /><br />## enable rewrites<br /><br />Options +FollowSymLinks<br />RewriteEngine on<br /><br />############################################<br />## you can put here your magento root folder<br />## path relative to web root<br /><br />RewriteBase /de]]></description>
<dc:creator>sannisinas</dc:creator>
<category>Migration from Other Servers</category><pubDate>Wed, 19 Dec 2012 09:40:08 -0500</pubDate></item>
</channel>
</rss>