Hosting a wiki and redmine on same droplet.

I’ve already looked at other peoples’ questions about the same subject and already tried their solutions. I’m in more need of a guide than a absolute answer.

I have installed Ubuntu 14.04 Redmine on my droplet (the installation that DO offers) now my project manager also wants my domain to have a wiki.

We have a domain that is when you open it will bring the redmine page. What i want to do is the main site opens up a wiki and you have to type to access the redmine part of the project. How can this be done?

PS: I don’t have experience with Nginx

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I’ma try these when i get back from university after lunch, for now that’s my server block code

server {
        listen 80;
        server_name redmine-hsqx;

        root /srv/redmine/public;
        passenger_enabled on;

        client_max_body_size 10m;

also i might try to install the wikia wiki which is open source


You can make NGINX listen to specific directories and domains. With the use of VHOSTS you can basically run an unlimited amount of websites on your webserver as long as you have resources.

To do what you want, I wouldn’t make it to difficult; you can just edit your default nginx configuration file (I would rename it just for developer knowledge) and then make a directory for the /redmine

So; inside your /var/www/html make a directory called redmine and put all your redmine files in there. Now you can put your main website inside the “root” directory /var/www/html. Your directory will then look like this:

  • /var/www/html --> your wiki files
  • /var/www/html/redmine --> your redmine files

Now you can just edit your NGINX configuration to serve both webdirectories. First rename your default configuration:

sudo rm /etc/nginx/sites-enabled/default
sudo mv /etc/nginx/sites-available/default /etc/nginx/sites-available/
sudo ln -s /etc/nginx/sites-available/ /etc/nginx/sites-enabled/

This doesn’t really matter, the name is just for developers to know what kind of configuration it is. Now edit the configuration file and restart the nginx service:

sudo nano /etc/nginx/site-available/

with the following content: (may be a bit different than what you have now, if you use PHP you need to have the PHP socket in there as well)

server {
        listen 80 default_server;
        listen [::]:80 default_server;

        root /var/www/html;
        index index.html index.htm index.nginx-debian.html;


        location / {
                try_files $uri $uri/ =404;

        location /redmine {
                try_files $uri $uri/ =404;

Now restart nginx

sudo service nginx restart

I hope this will help you out, if you have got any more questions don’t hesistate to ask me!


It’s definitely possible to do this, though how you’d go about it depends on the Wiki software that you choose to use.

Your NGINX server block should be located here:


If that file doesn’t exist, you can run:

ls /etc/nginx/sites-available/

…to see what file(s) are there, and then find the one that is associated with your site.

The file will start with server { and end with a }. Within this file, you’ll see a few variables such as:

location ....

etc. That’s the configuration that tells NGINX how to handle requests for your site in some manor.

Moving the Redmine instance to /redmine and setting up the Wiki could be as easy as modifying the current location block and adding another, or it could require installing more software. It really depends on what you want to use for the Wiki software.

If you can copy and paste the contents of your current NGINX server block file to a code block as a reply, I can take a look at it for you.