It looks like you're new here. If you want to get involved, click one of these buttons!
How you translate
RewriteEngine on RewriteRule ^$ /index.php [L] RewriteCond $1 !^(index.php|img|css|js|robots.txt|favicon.ico|update.php|install.php) RewriteRule ^(.*)$ /index.php/$1 [L]
To NGINX syntax.
I'm having problems with NGINX+PHP running Bamboo Invoice.
Comments
location / { rewrite ^/$ /index.php break; rewrite ^(.*)$ /index.php/$1 break; }
http://winginx.com/htaccess
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksRight, Now the server don't parse the PHP.
http://molaxhosting.tk is now http://molaxhosting.com | http://molax.tk
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksJust in case you need a converter, try this :
http://www.anilcetin.com/convert-apache-htaccess-to-nginx/
Streaming lagu sunda powered by RamNode
- Spam
- Abuse
- Troll
0 • Disagree Agree Thankstried both but still getting plain text output or 404.
http://molaxhosting.tk is now http://molaxhosting.com | http://molax.tk
- Spam
- Abuse
- Troll
0 • Disagree Agree Thankshave you installed the php :D
Streaming lagu sunda powered by RamNode
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksYes, and it worked well. The problem started when I uploaded Bamboo Invoice and noted the URL is index.php/param instead of index.php?param
http://molaxhosting.tk is now http://molaxhosting.com | http://molax.tk
- Spam
- Abuse
- Troll
0 • Disagree Agree Thankstry location / { rewrite ^/$ /index.php break; rewrite ^(.*)$ /index.php?$1 break; }
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksIf worsts comes to worst you can just install nginx as a proxy for apache.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksIf you've used the location examples suggested here, there's no directives for loading PHP. You need to structure your location something like this:
location / { # Rewrite rules here. Rule 1 Rule 2 ... location ~ \.php$ { # Nginx PHP config here. Config line 1 Config line 2 ... } }- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksOK, I will retry this weekend and see how this works. The plan B is reset all config and start again.
http://molaxhosting.tk is now http://molaxhosting.com | http://molax.tk
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksProject Bamboo Invoice aborted. My WordPress site has over 2 days of downtime and I will move it to the VPS.
Interestingly everything works well (until now) with WordPress. Unlike Bamboo.
http://molaxhosting.tk is now http://molaxhosting.com | http://molax.tk
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksI'm curious, as nginx is very popular nowaday, why nobody writes a Module or Addon for nginx to compatible with htaccess?
I'm a stupid cat, don't blame me.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksBecause htaccess is backwards
PHP Looking Glass
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksWhy not a backwards transport for easy migration : )
I'm a stupid cat, don't blame me.
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks@name personally I just use
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks502 Bad Gateway nginx/0.7.67
http://molaxhosting.tk is now http://molaxhosting.com | http://molax.tk
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanksjuan, you missed the engine for php script. Are you using nginx with php-fpm? for .htaccess to nginx conf, please check: http://winginx.com/htaccess
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksphpMyAdmin works well. The Bad Gateway error is with WordPress on the root of webserver directory.
EDIT:
My fault, I missed a .htaccess file created from the old WordPress install I am migrating to the VPS.
Thanks
http://molaxhosting.tk is now http://molaxhosting.com | http://molax.tk
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksNo luck, still 502 Bad Gateway.
http://molaxhosting.tk is now http://molaxhosting.com | http://molax.tk
- Spam
- Abuse
- Troll
0 • Disagree Agree Thankslocation { listen 80; server_name www.site.com example.org; if ($http_host = example.org) { rewrite (.*) http://www.example.org$1; } ... }
Cheap Virtual Private Server!
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks504 Gateway Time-out
Maybe I need a better VPS if I want to run web with PHP and MySQL.
504->200->502
WordPress frontend 200 OK Backend 502 Bad Gateway.
http://molaxhosting.tk is now http://molaxhosting.com | http://molax.tk
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksMain website working, Wordpress backend still 502 error.
http://molaxhosting.tk is now http://molaxhosting.com | http://molax.tk
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksPlan B. Returning to free web host only to handle the scripts. MySQL and some files will remain on the VPS.
Closed case.
http://molaxhosting.tk is now http://molaxhosting.com | http://molax.tk
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksSolved, try_files $uri $uri/ /index.php?$args;
http://molaxhosting.tk is now http://molaxhosting.com | http://molax.tk
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks