[asterisk-gui] HTTP Redirect Option

Andrew Latham lathama at gmail.com
Sat Dec 23 07:41:16 MST 2006


Looks fine to me.

On 12/23/06, Russell Bryant <russell at digium.com> wrote:
> Hey everyone,
>
> I'm really excited about this gui project, and I've been trying to help a little bit in the ways that I can.  One thing that I came across when playing with it is that I got tired of typing out this long URL to get to the gui:
>
> http://localhost:8088/asterisk/static/config/cfgadvanced.html
>
> So, I added a new option to http.conf in Asterisk to allow you to redirect one path to another.  For example, in my http.conf, I have:
>
> ; Syntax is redirect=<from here>=<to there>
> redirect=/=/asterisk/static/config/cfgadvanced.html
>
> Now, I can just go to http://localhost:8088 and I am brought directly to the gui main page.  The HTTP server just sends a "302 Moved Temporarily" message to accomplish this.
>
> I haven't actually posted this code anywhere yet, but I wanted to go ahead and ask about it on this list to see what others thought about it.  Do you think this is a good idea?  Do you foresee any problems with this approach?
>
> Thanks,
>
> --
> Russell Bryant
> Software Engineer
> Digium, Inc.
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-gui mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-gui
>


-- 
---
Andrew Latham - AKA: LATHAMA (lay-th-ham-eh)
lathama at lathama.com - lathama at gmail.com
If any of the above are down we have bigger problems than my email!
Hind sight is most always 20/20 or better.
---


More information about the asterisk-gui mailing list