I am looking at setting up a blog and a forum. I will be using WordPress.org for the blog and Vanilla Forums for the forum. I could buy two VPSs but if I can get it to work on 1 VPS then that would be better.
I would like to set it up so that mydomain.com/www.mydomain.com goes to the WordPress website and forum.mydomain.com goes to the Vanilla Forums. I will be hosting the VPS with OVH using their VPS Classic. I will probably be using CentOS on the VPS if that helps.
I have looked around but could not find an answer for using two different web servers (WordPress and Vanilla).
Sorry if this has already been asked.
Thanks,
WordPress and Vanilla are not "two different web servers". They are both applications that run on a web server. As long as your server meets the minimum requirements for both, you should have no problem running them both on the same VPS:
https://github.com/vanilla/vanilla/blob/master/README.md#self-hosting-requirements https://wordpress.org/about/requirements/
Regarding running both, each under it's own domain, you would just need to setup a virtual host for each. If your VPS has cPanel (or similar) you just need to setup an addon domain. If your VPS is unmanaged (no control panel) you can setup the virtual host manually. A quick google search should turn up plenty of results for configuring virtual hosts in apache.