Help with Dokku + Wordpress permalinks

June 19, 2014 1.8k views
Need help with wordpress permalinks, i tried allmost everything that i found on the forums but still cant get it to work. If i try the wordpress approach i loose the proxy pass:
location / {
    index index.php index.html index.htm;
    try_files $uri $uri/ /index.php?$args;
3 Answers
Are you trying to edit the Nginx configuration on the host system? You should include a custom Nginx config in the root of the Wordpress project along with a composer.json file so that Dokku will pick it up. Check out this blog post on deploying Wordpress with Dokku on DigitalOcean:
  • Thanks for the reply, Yes i followed every step and still cant get it to work. I have all the files at the root of wordpress. Seems that its not loading it and just tacking the one on the host /home/dokku/app/nginx.conf
  • Dokku also supports custom Heroku buildpacks. I've never tried it myself. Ceck out: There are a number of Heroku buildpacks that are speciallized for hosting Wordpress, like:
I was hoping that to be the last solution. Right now i have at a wordpress site at root domain and creating different node apps in subdomains. Are you sure there is no other way? Even in the tutorial that you recommended i asked and they dont really now how to make it work with nginx. If there is no other way, what aproach do you recommend for my workflow with buildsteps. thanks man!

Leaving this here for future Googlers:

Heroku-like WordPress deployments with git and dokku

Good walk through and at the time of posting most recent I could find (some of the older tutorials have instructions to install deprecated Dokku plugins).

Have another answer? Share your knowledge.