[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: redirecting url

Florian Gilcher

4/18/2008 10:12:00 AM

|-----BEGIN PGP SIGNED MESSAGE-----
|Hash: SHA1
|
|Vio Dds wrote:
|| Hi,
||
|| I'm trying to redirect my redmine page :
||
|| I have my web site url : http://www.my...
|| and I try to put redmine on http://www.my.../redmine
||
|| but I can't !
||
|| I put in 'http_vhosts.conf' a redirection proxy
||
|| proxypass /redmine http://localhost:3000/redmine
|| proxypassreverse /redmine http://localhost:3000/redmine
||
|| So now my first page works properly put when I go to another page : 404
|| Error Page not found.
||
|| Can you please tell what I did wrong or what I should add ?
|
|Check the manual and other support sites for your webserver.
|
|- --
|Phillip Gawlowski
|Twitter: twitter.com/cynicalryan

If RTFM is the only thing that you have to say: keep it to yourself. Manual and support won't help him here, because he is obviously on a wrong track.

So, Vio. We had a similar problem a while ago.

The problem is that you application is mapped at "/" on your local webserver (localhost:3000). So, the proxypass has to read:

======
proxypass /redmine http://localhost:3000
proxypassreverse /redmine http://localhost:3000
======

This however gives you another problem: redmine will begin to generate URLs that are mapped to "/". So links won't work. You have to tell redmine what it's relative url root is:

======
ActionController::AbstractRequest.relative_url_root = "/redmine"
======

Put this in one of the environment files after the frameworks are loaded.

Greetings
Skade

4 Answers

Phillip Gawlowski

4/18/2008 10:32:00 AM

0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

flo@andersground.net wrote:

| If RTFM is the only thing that you have to say: keep it to yourself.
Manual and support won't help him here, because he is obviously on a
wrong track.

This is the Ruby Talk mailing list, not a mailing list for redmine
(http://www.re...), nor the Rails mailing list
(http://www.ruby-forum.c...). Asking for configuration details of
an unspecified webserver (Mongrel cluster? Litespeed? mod_rails?
WEBrick?) is better done at the locations that are actually concerned
with that.

The chances of finding somebody who can actually help increases extremely.

Especially if the crystal ball is cloudy.

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan

Youth is the trustee of posterity.
~ -- Benjamin Disraeli
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail....

iEYEARECAAYFAkgIeIoACgkQbtAgaoJTgL9IFwCbBND5AVGoM8UPqtgYeYyGGeFl
kVgAn0Dh4mwWU2VT2MwBszWqfBXh0Hsz
=gM8y
-----END PGP SIGNATURE-----

Florian Gilcher

4/18/2008 11:44:00 AM

0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>
> This is the Ruby Talk mailing list, not a mailing list for redmine
> (http://www.re...), nor the Rails mailing list
> (http://www.ruby-forum.c...). Asking for configuration
> details of
> an unspecified webserver (Mongrel cluster? Litespeed? mod_rails?
> WEBrick?) is better done at the locations that are actually concerned
> with that.
>
> The chances of finding somebody who can actually help increases
> extremely.
>
> Especially if the crystal ball is cloudy.
>
> - --
> Phillip Gawlowski
> Twitter: twitter.com/cynicalryan
>

While this is true, your answer would have been more useful if you
actually
provided those references you are providing now. Just answering "well,
read the
manual" without pointing out the flaws of his request is not helpful
and futile.
Your answer only increases Vios frustration which cannot be the goal
of this
mailing list.

Regards,
Florian Gilcher

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkgIpZQACgkQJA/zY0IIRZb5fgCfYWHr80tAmaNUEWZ1ADZp61D3
oMcAoL54X2JHgvVc2ZLTduUc6aDX8oTm
=pUT0
-----END PGP SIGNATURE-----

Phillip Gawlowski

4/18/2008 12:30:00 PM

0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Florian Gilcher wrote:

| While this is true, your answer would have been more useful if you
actually
| provided those references you are providing now. Just answering "well,
| read the
| manual" without pointing out the flaws of his request is not helpful and
| futile.
| Your answer only increases Vios frustration which cannot be the goal of
| this
| mailing list.


What's next: "How to use a search engine"? "Clicking on links for the
search-engine impaired"? "Can u giv me teh codez for h3ll0 wurld!1111"?

A minimal level of research can be, and should be, expected. And somehow
I suspect that routing issues for a webserver or Rails app or whatever
aren't new problems, either.

If nothing shows up, or nothing really matches the problem, then, by all
means, ask for help.

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan

~ Verbing weirds language.
~ --- Calvin.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail....

iEYEARECAAYFAkgIlEoACgkQbtAgaoJTgL+WWgCfegtWjz+ea+0JzcA1zdois8qH
xOEAnA6zt2Lyrt5qwKYFPWK0wwnJ5gvD
=e0J8
-----END PGP SIGNATURE-----

Florian Gilcher

4/18/2008 1:09:00 PM

0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> What's next: "How to use a search engine"? "Clicking on links for the
> search-engine impaired"? "Can u giv me teh codez for h3ll0 wurld!
> 1111"?
>
> A minimal level of research can be, and should be, expected. And
> somehow
> I suspect that routing issues for a webserver or Rails app or whatever
> aren't new problems, either.
>
> If nothing shows up, or nothing really matches the problem, then, by
> all
> means, ask for help.

My point was: If you think that the question is a null statement,
don't add another
null statement - at least try to improve the value of the thread.
Maybe there is
someone else that can make sense of it.

Regards,
Florian Gilcher

P.S.: But if you could give me teh codez for h3ll0 wurld, i'd be
happy :).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkgInUcACgkQJA/zY0IIRZZkBQCgnAlA3CyIm7ofG2f9hpyVqasg
lAwAoJWbtdo5KQ/Ncqm0eE//2eu3BTfA
=i1Ib
-----END PGP SIGNATURE-----