Question

Help with Dokku + Wordpress permalinks

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: <pre> location / { index index.php index.html index.htm; try_files $uri $uri/ /index.php?$args; } </pre>


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Andrew SB
DigitalOcean Employee
DigitalOcean Employee badge
June 19, 2014
Accepted Answer

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 <code>composer.json</code> file so that Dokku will pick it up.

Check out this blog post on deploying Wordpress with Dokku on DigitalOcean:

http://shincoding.com/docker/tutorial-deploying-wordpress-with-dokku/

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).

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.