[prev in list] [next in list] [prev in thread] [next in thread] 

List:       asterisk-gui
Subject:    Re: [asterisk-gui] 404 when issue asterisk gui web access
From:       Gad Alaloof <gadi.alaloof () gmail ! com>
Date:       2009-07-27 10:38:46
Message-ID: eadb09d20907270338s5a830f15nefe294dee3fca9af () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thanks.
My problem was permissions on directories.


On Mon, Jul 27, 2009 at 1:38 AM, Ryan Brindley <rbrindley@digium.com> wrote:

> I see you're trying to access cfgadvanced.html, thats actually deprecated.
> Try accessing index.html
>
> --
> Ryan Brindley
> Digium, Inc. | Software Developer
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
> main: +1 256-428-6000   fax: +1 256-864-0464
> Check us out at: http://digium.com & http://asterisk.org
>
> ----- "Gad Alaloof" <gadi.alaloof@gmail.com> wrote:
> > > Thanks.
> >
> > > On Sat, Jul 25, 2009 at 4:26 PM, Bob Crandell <bob@assuredcomp.com>wrote:
> >
>>
>> Hi,
>> >
>> > This is what my http.conf looks like:
>> > ;!
>> > ;! Automatically generated configuration file
>> > ;! Filename: http.conf (/etc/asterisk/http.conf)
>> > ;! Generator: Manager
>> > ;! Creation Date: Fri Jul 24 10:05:35 2009
>> > ;!
>> > ;
>> > ; Asterisk Builtin mini-HTTP server
>> > ;
>> > ;
>> > ; Note about Asterisk documentation:
>> > ;   If Asterisk was installed from a tarball, then the HTML
>> documentation should
>> > ;   be installed in the static-http/docs directory which is
>> > ;   (/var/lib/asterisk/static-http/docs) on linux by default.  If the
>> Asterisk
>> > ;   HTTP server is enabled in this file by setting the "enabled",
>> "bindaddr",
>> > ;   and "bindport" options, then you should be able to view the
>> documentation
>> > ;   remotely by browsing to:
>> > ;       http://<server_ip>:<bindport>/static/docs/index.html
>> > > ;
>> > [general]
>> > ;
>> > ; Whether HTTP/HTTPS interface is enabled or not.  Default is no.
>> > ; This also affects manager/rawman/mxml access (see manager.conf)
>> > ;
>> > enabled = yes
>> > ;
>> > ; Address to bind to, both for HTTP and HTTPS.  Default is 0.0.0.0
>> > ;
>> >
>> ;bindaddr=127.0.0.1
>> > > ;
>> > ; Port to bind to for HTTP sessions (default is 8088)
>> > ;
>> > ;bindport=8088
>> >
>> ;
>> > ; Prefix allows you to specify a prefix for all requests
>> > ; to the server.  The default is blank.  If uncommented
>> > ; all requests must begin with /asterisk
>> > ;
>> > prefix = asterisk
>> > ;
>> > ; Whether Asterisk should serve static content from http-static
>> > ; Default is no.
>> > ;
>> > enablestatic = yes
>> > ;
>> > ; Redirect one URI to another.  This is how you would set a
>> > ; default page.
>> > ;   Syntax: redirect=<from here> <to there>
>> > ; For example, if you are using the Asterisk-gui,
>> > ; it is convenient to enable the following redirect:
>> > ;
>> > redirect = / /static/config/index.html
>> > ;
>> > ; HTTPS support. In addition to enabled=yes, you need to
>> > ; explicitly enable ssl, define the port to use,
>> > ; and have a certificate somewhere.
>> > ; sslenable=yes         ; enable ssl - default no.
>> > ; sslbindport=4433      ; port to use - default is 8089
>> > ; sslbindaddr=0.0.0.0   ; address to bind to - default is bindaddr.
>> > ;
>> > ; sslcert=/tmp/foo.pem  ; path to the certificate
>> > ;
>> > ; To produce a certificate you can e.g. use openssl
>> > ;       openssl req -new -x509 -days 365 -nodes -out /tmp/foo.pem
>> -keyout /tmp/foo.pem
>> > ;
>> >
>> > ; The post_mappings section maps URLs to real paths on the filesystem.
>>  If a
>> > ; POST is done from within an authenticated manager session to one of
>> the
>> > ; configured POST mappings, then any files in the POST will be placed in
>> the
>> > ; configured directory.
>> > ;
>> > [post_mappings]
>> > ;
>> > ; In this example, if the prefix option is set to "asterisk", then using
>> the
>> > ; POST URL: /asterisk/uploads will put files in
>> /var/lib/asterisk/uploads/.
>> > uploads = /var/lib/asterisk/uploads/
>> > backups = /var/lib/asterisk/gui_backups
>> > moh = /var/lib/asterisk/moh
>> >
>> >
>> > >>> Gad Alaloof <gadi.alaloof@gmail.com> 7/25/2009 01:24 AM >>>
>> >
>> >
>> > Hi
>> > After installing Asterisk 1.6 i get 404 error when getting to web gui
>> url.
>> > I try:
>> > http://127.0.0.1:8088/asterisk/static/config/cfgadvanced.html
>> >
>> >
>> > Installation is on ubanutu desktop edition 9.0.4.
>> >
>> >
>> > http.conf looks like this:
>> >
>> > [general]
>> > ;
>> > ; Whether HTTP/HTTPS interface is enabled or not. Default is no.
>> > ; This also affects manager/rawman/mxml access (see manager.conf)
>> > ;
>> > enabled=yes
>> > ;
>> > ; Address to bind to, both for HTTP and HTTPS. Default is 0.0.0.0
>> > ;
>> > bindaddr=0.0.0.0
>> > ;
>> > ; Port to bind to for HTTP sessions (default is 8088)
>> > ;
>> > bindport=8088
>> >
>> > And manager.conf looks like this:
>> >
>> > [general]
>> > enabled = yes
>> > webenabled = yes
>> > port = 5038
>> > bindaddr = 0.0.0.0
>> > [administrator]
>> > secret = xxx
>> > read = system,call,log,verbose,command,agent,user,config
>> > write = system,call,log,verbose,command,agent,user,config
>> >
>> >
>> > make checkconfig also shows everythink is ok.
>> >
>> > Please advice.
>> > Thanks.
>> >
>> >
>> >
>> >
>> _______________________________________________
>> > --Bandwidth and Colocation Provided by http://www.api-digital.com--
>> >
>> > asterisk-gui mailing list
>> > To UNSUBSCRIBE or update options visit:
>> >   http://lists.digium.com/mailman/listinfo/asterisk-gui
>> >
>
>
> >
>
> > _______________________________________________ --Bandwidth and
> Colocation Provided by http://www.api-digital.com-- asterisk-gui mailing
> list To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-gui
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-gui mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-gui
>

[Attachment #5 (text/html)]

<div dir="ltr">Thanks.<br>My problem was permissions on directories.<br><br><br><div \
class="gmail_quote">On Mon, Jul 27, 2009 at 1:38 AM, Ryan Brindley <span \
dir="ltr">&lt;<a href="mailto:rbrindley@digium.com">rbrindley@digium.com</a>&gt;</span> \
wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div \
style="font-family: Arial; font-size: 10pt; color: rgb(0, 0, 0);">I see you&#39;re \
trying to access cfgadvanced.html, thats actually deprecated. Try accessing \
index.html<br> <br>--                 <br>Ryan Brindley                 <br>Digium, \
Inc. | Software Developer                 <br>445 Jan Davis Drive NW - Huntsville, AL \
35806 - USA                 <br>main: +1 256-428-6000   fax: +1 256-864-0464          \
<br> Check us out at: <a href="http://digium.com" \
target="_blank">http://digium.com</a> &amp; <a href="http://asterisk.org" \
target="_blank">http://asterisk.org</a><br><br>----- &quot;Gad Alaloof&quot; &lt;<a \
href="mailto:gadi.alaloof@gmail.com" target="_blank">gadi.alaloof@gmail.com</a>&gt; \
wrote: <br>&gt; <div dir="ltr">&gt; Thanks.<br>&gt; <br>&gt; <div \
class="gmail_quote">&gt; On Sat, Jul 25, 2009 at 4:26 PM, Bob Crandell <span \
dir="ltr">&lt;<a href="mailto:bob@assuredcomp.com" \
target="_blank">bob@assuredcomp.com</a>&gt;</span> wrote:<br> &gt; <blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> Hi,<br>&gt; 
<br>&gt; 
This is what my http.conf looks like:<br>&gt; 
;!<br>&gt; 
;! Automatically generated configuration file<br>&gt; 
;! Filename: http.conf (/etc/asterisk/http.conf)<br>&gt; 
;! Generator: Manager<br>&gt; 
;! Creation Date: Fri Jul 24 10:05:35 2009<br>&gt; 
;!<br>&gt; 
;<br>&gt; 
; Asterisk Builtin mini-HTTP server<br>&gt; 
;<br>&gt; 
;<br>&gt; 
; Note about Asterisk documentation:<br>&gt; 
;   If Asterisk was installed from a tarball, then the HTML documentation \
should<br>&gt;  ;   be installed in the static-http/docs directory which is<br>&gt; 
;   (/var/lib/asterisk/static-http/docs) on linux by default.  If the \
Asterisk<br>&gt;  ;   HTTP server is enabled in this file by setting the \
&quot;enabled&quot;, &quot;bindaddr&quot;,<br>&gt;  ;   and &quot;bindport&quot; \
options, then you should be able to view the documentation<br>&gt;  ;   remotely by \
browsing to:<br>&gt;  ;       \
http://&lt;server_ip&gt;:&lt;bindport&gt;/static/docs/index.html<br>&gt;  <div>&gt; \
;<br>&gt;  [general]<br>&gt; 
;<br>&gt; 
; Whether HTTP/HTTPS interface is enabled or not.  Default is no.<br>&gt; 
; This also affects manager/rawman/mxml access (see manager.conf)<br>&gt; 
;<br>&gt; 
enabled = yes<br>&gt; 
;<br>&gt; 
; Address to bind to, both for HTTP and HTTPS.  Default is 0.0.0.0<br>&gt; 
;<br>&gt; 
</div>;bindaddr=127.0.0.1<br>&gt; 
<div>&gt; ;<br>&gt; 
; Port to bind to for HTTP sessions (default is 8088)<br>&gt; 
;<br>&gt; 
;bindport=8088<br>&gt; 
</div>;<br>&gt; 
; Prefix allows you to specify a prefix for all requests<br>&gt; 
; to the server.  The default is blank.  If uncommented<br>&gt; 
; all requests must begin with /asterisk<br>&gt; 
;<br>&gt; 
prefix = asterisk<br>&gt; 
;<br>&gt; 
; Whether Asterisk should serve static content from http-static<br>&gt; 
; Default is no.<br>&gt; 
;<br>&gt; 
enablestatic = yes<br>&gt; 
;<br>&gt; 
; Redirect one URI to another.  This is how you would set a<br>&gt; 
; default page.<br>&gt; 
;   Syntax: redirect=&lt;from here&gt; &lt;to there&gt;<br>&gt; 
; For example, if you are using the Asterisk-gui,<br>&gt; 
; it is convenient to enable the following redirect:<br>&gt; 
;<br>&gt; 
redirect = / /static/config/index.html<br>&gt; 
;<br>&gt; 
; HTTPS support. In addition to enabled=yes, you need to<br>&gt; 
; explicitly enable ssl, define the port to use,<br>&gt; 
; and have a certificate somewhere.<br>&gt; 
; sslenable=yes         ; enable ssl - default no.<br>&gt; 
; sslbindport=4433      ; port to use - default is 8089<br>&gt; 
; sslbindaddr=0.0.0.0   ; address to bind to - default is bindaddr.<br>&gt; 
;<br>&gt; 
; sslcert=/tmp/foo.pem  ; path to the certificate<br>&gt; 
;<br>&gt; 
; To produce a certificate you can e.g. use openssl<br>&gt; 
;       openssl req -new -x509 -days 365 -nodes -out /tmp/foo.pem -keyout \
/tmp/foo.pem<br>&gt;  ;<br>&gt; 
<br>&gt; 
; The post_mappings section maps URLs to real paths on the filesystem.  If a<br>&gt; 
; POST is done from within an authenticated manager session to one of the<br>&gt; 
; configured POST mappings, then any files in the POST will be placed in the<br>&gt; 
; configured directory.<br>&gt; 
;<br>&gt; 
[post_mappings]<br>&gt; 
;<br>&gt; 
; In this example, if the prefix option is set to &quot;asterisk&quot;, then using \
the<br>&gt;  ; POST URL: /asterisk/uploads will put files in \
/var/lib/asterisk/uploads/.<br>&gt;  uploads = /var/lib/asterisk/uploads/<br>&gt; 
backups = /var/lib/asterisk/gui_backups<br>&gt; 
moh = /var/lib/asterisk/moh<br>&gt; 
<br>&gt; 
<br>&gt; 
&gt;&gt;&gt; Gad Alaloof &lt;<a href="mailto:gadi.alaloof@gmail.com" \
target="_blank">gadi.alaloof@gmail.com</a>&gt; 7/25/2009 01:24 AM \
&gt;&gt;&gt;<br>&gt;  <div><div></div><div>&gt; <br>&gt; 
Hi<br>&gt; 
After installing Asterisk 1.6 i get 404 error when getting to web gui url.<br>&gt; 
I try:<br>&gt; 
<a href="http://127.0.0.1:8088/asterisk/static/config/cfgadvanced.html" \
target="_blank">http://127.0.0.1:8088/asterisk/static/config/cfgadvanced.html</a><br>&gt; \
 <br>&gt; 
<br>&gt; 
Installation is on ubanutu desktop edition 9.0.4.<br>&gt; 
<br>&gt; 
<br>&gt; 
http.conf looks like this:<br>&gt; 
<br>&gt; 
[general]<br>&gt; 
;<br>&gt; 
; Whether HTTP/HTTPS interface is enabled or not. Default is no.<br>&gt; 
; This also affects manager/rawman/mxml access (see manager.conf)<br>&gt; 
;<br>&gt; 
enabled=yes<br>&gt; 
;<br>&gt; 
; Address to bind to, both for HTTP and HTTPS. Default is 0.0.0.0<br>&gt; 
;<br>&gt; 
bindaddr=0.0.0.0<br>&gt; 
;<br>&gt; 
; Port to bind to for HTTP sessions (default is 8088)<br>&gt; 
;<br>&gt; 
bindport=8088<br>&gt; 
<br>&gt; 
And manager.conf looks like this:<br>&gt; 
<br>&gt; 
[general]<br>&gt; 
enabled = yes<br>&gt; 
webenabled = yes<br>&gt; 
port = 5038<br>&gt; 
bindaddr = 0.0.0.0<br>&gt; 
[administrator]<br>&gt; 
secret = xxx<br>&gt; 
read = system,call,log,verbose,command,agent,user,config<br>&gt; 
write = system,call,log,verbose,command,agent,user,config<br>&gt; 
<br>&gt; 
<br>&gt; 
make checkconfig also shows everythink is ok.<br>&gt; 
<br>&gt; 
Please advice.<br>&gt; 
Thanks.<br>&gt; 
<br>&gt; 
<br>&gt; 
<br>&gt; 
</div></div>_______________________________________________<br>&gt; 
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" \
target="_blank">http://www.api-digital.com--</a><br>&gt;  <br>&gt; 
asterisk-gui mailing list<br>&gt; 
To UNSUBSCRIBE or update options visit:<br>&gt; 
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-gui" \
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-gui</a><br>&gt;  \
</blockquote></div><br>&gt; </div> <br>&gt; \
                _______________________________________________
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" \
target="_blank">http://www.api-digital.com--</a>

asterisk-gui mailing list
To UNSUBSCRIBE or update options visit:
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-gui" \
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-gui</a></div></div><br>_______________________________________________<br>
                
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" \
target="_blank">http://www.api-digital.com--</a><br> <br>
asterisk-gui mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-gui" \
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-gui</a><br></blockquote></div><br></div>




_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-gui mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-gui

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic