[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 Mar 12 17:01:54 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:                     assigned
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:              
====================================================================== 
Date Submitted:             03-12-2008 12:00 CDT
Last Modified:              03-12-2008 17:01 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;
        }


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

---------------------------------------------------------------------- 
 russell - 03-12-08 17:01  
---------------------------------------------------------------------- 
what does the http settings CLI command show as the prefix setting?  That
block shouldn't be triggered unless the prefix option is set to something
that has a length that is non-zero ... 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-12-08 17:01  russell        Note Added: 0083867                          
======================================================================




More information about the asterisk-bugs mailing list