Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49206

Drupal on [nginx-based] DotCloud instances

$
0
0

I wrote a blog post about getting Drupal to work on an automated DotCloud instance. The main pain point I ran into was configuring the rewrite rules for nginx, so maybe this group can help.

DotCloud allows an nginx.conf file in a project root, which the server picks up when it reloads. I based mine on perusio's drupal-with-nginx project, specifically the drupal.conf and drupal7.conf files. (I tried it with both D6 and D7 and had the same issue.)

Problem in a nutshell is, none of the rewrite rules are working properly. I know the file is being picked up, because if I out in obviously wrong syntax, the logs show an error, but the good directives aren't working properly. I've stripped it down to its simplest variation:

location @drupal {
    rewrite ^/(.*)$ /index.php?q=$1 last;
}

but it throws a generic nginx 404 on every URL (except index.php?q=X).

Has anyone tried to deploy on dotcloud? Any suggestions for how to debug the conf?

Thanks!


Viewing all articles
Browse latest Browse all 49206

Trending Articles