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 hackerspaceqx.com 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 hackerspaceqx.com/redmine to access the redmine part of the project. How can this be done?
PS: I don’t have experience with Nginx
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!
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:
/etc/nginx/sites-available/default
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:
root
server_name
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.
Hello,
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:
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/hackerspaceqx.com
sudo ln -s /etc/nginx/sites-available/hackerspaceqx.com /etc/nginx/sites-enabled/hackerspaceqx.com
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/hackerspaceqx.com
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;
server_name hackerspaceqx.com www.hackerspaceqx.com;
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!
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 107.170.33.111 redmine-hsqx hackerspaceqx.com hackerspaceqx.com;
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.