Using a different path in Apache

Asked by Ismael

I want to serve Graphite at localhost/graphite . I can't setup Apache correctly. Could you provide some guidance?

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Nicholas Leskiw (nleskiw) said :
#1

Have you tried setting a different location in the virtual host config file for Apache?

Change <Location "/"> to <Location "/graphite/">
Change <Location "/content/"> to <Location "/graphite/content/">
Change <Location "/media"> to <Location "/media/graphite/">
Change
Alias /media/ "@DJANGO_ROOT@/contrib/admin/media/"
to
Alias /graphite/media/ "@DJANGO_ROOT@/contrib/admin/media/"

I have not tested this, so I can't guarantee this will work...but it's something to try.

Revision history for this message
Ismael (ismaelgfk) said :
#2

I have, it causes the page to load a frameset in a frameset loop.

On Wed, Aug 17, 2011 at 6:35 PM, Nicholas Leskiw
<email address hidden> wrote:
> Your question #168035 on Graphite changed:
> https://answers.launchpad.net/graphite/+question/168035
>
>    Status: Open => Needs information
>
> Nicholas Leskiw requested more information:
> Have you tried setting a different location in the virtual host config
> file for Apache?
>
> Change <Location "/"> to <Location "/graphite/">
> Change <Location "/content/"> to <Location "/graphite/content/">
> Change <Location "/media"> to <Location "/media/graphite/">
> Change
> Alias /media/ "@DJANGO_ROOT@/contrib/admin/media/"
> to
> Alias /graphite/media/ "@DJANGO_ROOT@/contrib/admin/media/"
>
> I have not tested this, so I can't guarantee this will work...but it's
> something to try.
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/graphite/+question/168035
>
> You received this question notification because you asked the question.
>

Revision history for this message
chrismd (chrismd) said :
#3

Hi Ismael, I'm sorry to say it but this isn't a supported configuration. We've tried implementing this in the past but ran into lots of issues (like the dreaded infinitely-nested-frames problem) and it complicates some parts of the code unnecessarily.

The good news is that it's very likely you can achieve your goal another way. If you don't already I highly recommend running Graphite in its own vhost (an example vhost config file is included in the release tarball). Doing this helps isolate Graphite from other apps running in the same apache instance. I hope that helps.

Revision history for this message
Ismael (ismaelgfk) said :
#4

I'm using that right now, but it complicates matters, as I'm using the
graphs from my app. My app has to be served from 4 different IPs in
different LANs and ports, so I don't know how to get to the correct
graphite IP/port (graphite is being served in all of the IPs, on
different ports). If I could run it on the same vhost, I wouldn't have
this issue.

Thanks for your answer.

On Thu, Aug 18, 2011 at 1:15 AM, chrismd
<email address hidden> wrote:
> Your question #168035 on Graphite changed:
> https://answers.launchpad.net/graphite/+question/168035
>
>    Status: Open => Answered
>
> chrismd proposed the following answer:
> Hi Ismael, I'm sorry to say it but this isn't a supported configuration.
> We've tried implementing this in the past but ran into lots of issues
> (like the dreaded infinitely-nested-frames problem) and it complicates
> some parts of the code unnecessarily.
>
> The good news is that it's very likely you can achieve your goal another
> way. If you don't already I highly recommend running Graphite in its own
> vhost (an example vhost config file is included in the release tarball).
> Doing this helps isolate Graphite from other apps running in the same
> apache instance. I hope that helps.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/graphite/+question/168035/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/graphite/+question/168035
>
> You received this question notification because you asked the question.
>

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
chrismd (chrismd) said :
#6

Marking as answered

Can you help with this problem?

Provide an answer of your own, or ask Ismael for more information if necessary.

To post a message you must log in.