[asterisk-bugs] [Asterisk 0012198]: Make Asterisk-trunk handle 'prefix' in httpd.conf as 1.4 does.

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Jun 25 20:04:32 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12198 
====================================================================== 
Reported By:                bkruse
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   12198
Category:                   Core/HTTP
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 107998 
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             03-12-2008 12:00 CDT
Last Modified:              06-25-2008 20:04 CDT
====================================================================== 
Summary:                    Make Asterisk-trunk handle 'prefix' in httpd.conf as
1.4 does.
Description: 
In Asterisk 1.4, including BE and builds on the AA50, if the 'prefix'
variable in http.conf is not set, then that means there is no prefix.

(For example http://bkruse/static/config/cfgbasic.html)

And if prefix=testing, the above example would be:

http://bkruse/testing/static/config/cfgbasic.html

By default, in all places, we do NOT set a prefix. We do this so the link
will be shorter, easier to remember, and not easily changed. That is just
how it is.

In Trunk, however, if prefix is NOT set in http.conf, then the
ast_http_post_mapping to /var/lib/asterisk/static-http/config is never made
because it return's NULL, as seen here:

        if (!ast_strlen_zero(prefix) && strncmp(prefix, uri,
strlen(prefix))) {
                ast_debug(1, "URI %s does not have prefix %s\n", uri,
prefix);
                return NULL;
        }


====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 06-25-08 20:04  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 125191

U   trunk/configs/http.conf.sample

------------------------------------------------------------------------
r125191 | tilghman | 2008-06-25 20:04:27 -0500 (Wed, 25 Jun 2008) | 6
lines

Update sample configuration to match what are now the defaults for the
prefix.
(closes issue http://bugs.digium.com/view.php?id=12838, related to issue
http://bugs.digium.com/view.php?id=12198)
 Reported by: pabelanger
 Patches: 
       http.conf.diff2 uploaded by pabelanger (license 224)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=125191 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-25-08 20:04  svnbot         Note Added: 0089246                          
======================================================================




More information about the asterisk-bugs mailing list