Click here to Skip to main content
15,896,382 members

How can I changue URL in redmine code (ruby on rails)

Member 14471936 asked:

Open original thread
First of all sorry for my poor english. It's my first time working with ruby on rails and i don't have so much idea.
I have a redmine proyect mounted in a virtual machine, i can access to it writting my ip an it works.
But the problem is when i want to enter from an external link, (i have my virtual machine on a server)

I have this external link

companyname.com/MyServer/myVirtualMachineName/

And i can access to my proyect, but css doesn't load and all links are bad routed, for example:

companyname.com/login

I need to change it into:

companyname.com/MyServer/myVirtualMachineName/login

How can i change it? thanks for reading me.

What I have tried:

Nothing because i don't know how to begin.

I work with Apache.
Rails 3.2.22 (i can't update it)
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux] (same issue with ruby, i can't update it)
Tags: Ruby, Rails

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900