I am trying to run wordpress using apache and php as well as discourse using ruby. I am currently doing this by using proxies. Here's what I'm trying to accomplish:
When the user visits http://something.com/ he gets to see my wordpress site.
When the user visits http://something.com/forum he gets to see the discourse site.
The apache proxy is working. I have verified that the discourse page loads, but unfortunately all the assets do not load. Why? The script tags look like this:
<script src="/assets/..."></script>
The issue is that then the request goes to http://something/assets/..., which is not what I want. I have tried to do the following things:
- Modify config/application.rb. I changed the config.relative_url_root to "/var/www/discourse" and to "/forum". The webpage will throw this error:
Not Found: /
I have tried to set a tag in the index.html file, but I could not find it under the public/ directory.
I have attempted to modify the config/routes.rb file, but the server would not even start.
You might want to know that I am not a ruby programmer, though I do have programming experience with other languages.
Also, when I modified the config/application.rb file I did not enter any command to reload the file. When I modified the config/routes.rb file, I put my extra code on the very top. I forgot what I did, but it had something to do with setting the root directory.
So: long story short: How do I set the root directory for discourse/ruby on rails?