<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 8, 2016 at 7:06 PM, James Miller <span dir="ltr"><<a href="mailto:gajs-f0el@dea.spamcon.org" target="_blank">gajs-f0el@dea.spamcon.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On Tue, 8 Mar 2016, James Miller wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
A very belated reply to my own thread with what seems like a resolution to one of the issues about which I was inquiring back then. While trying to troubleshoot a different issue resulting from a recent upgrade from Apache 2.2 to 2.4, I ran across this relevant information, found in the mythweb.conf file:<br>
<br>
############################################################################<br>
# If you intend to use authentication for MythWeb (see below), you will<br>
# probably also want to uncomment the following rules, which disable<br>
# authentication for MythWeb's download URLs so you can properly stream<br>
# to media players that don't work with authenticated servers.<br>
#<br>
# <LocationMatch .*/pl/stream/[0-9]+/[0-9]+><br>
# Allow from all<br>
# </LocationMatch><br>
#<br>
# <LocationMatch .*/music/stream.php><br>
# Allow from all<br>
# </LocationMatch><br>
</blockquote>
<br></span>
I've discovered, after trying to implement this on my newly-upgraded Apache 2.4 system, that this solution to the problem of asx-streaming from an authenticated mythweb server, does not work: apache will not start due to errors it finds in the mythweb.conf file, errors resulting from the presence of the term "Allow." I suspect this is because the names for conditions in the new Apache version have changed, and "Allow" is no longer a valid argument. The question remains, then, what is the correct argument to use to get the desired behavior?<br>
<br>
I gather from some reading I've been doing that the correct way to formulate "Allow from all" for these entries under 2.4 might be "Require all granted." Can anyone here more experienced in Apache configuration and administration confirm or refute this supposition?<br></blockquote><div><br></div><div>I've been running Apache 2.4 for quite a while. Here's the relevant snippet from my mythweb.conf:<br><br>############################################################################<br># If you intend to use authentication for MythWeb (see below), you will<br># probably also want to uncomment the following rules, which disable<br># authentication for MythWeb's download URLs so you can properly stream<br># to media players that don't work with authenticated servers.<br>#<br> <LocationMatch .*/pl/stream/[0-9]+/[0-9]+><br># Allow from all<br> Require all granted<br> </LocationMatch><br>#<br> <LocationMatch .*/music/stream.php><br># Allow from all<br> Require all granted<br> </LocationMatch><br><br><br>#<br># CHANGE THESE PATHS TO MATCH YOUR MYTHWEB INSTALLATION DIRECTORY! e.g.<br>#<br># /var/www<br># /home/www/htdocs<br># /var/www/html/mythweb<br># /srv/www/htdocs/mythweb<br>#<br> <Directory "/var/www/localhost/htdocs/mythweb/data"><br> # For Apache 2.2<br> #Options -All +FollowSymLinks +IncludesNoExec<br> # For Apache 2.4+<br> Options +FollowSymLinks +IncludesNoExec<br> </Directory><br> <Directory "/var/www/localhost/htdocs/mythweb" ><br> <br> ############################################################################<br> # I *strongly* urge you to turn on authentication for MythWeb. It is disabled<br> # by default because it requires you to set up your own password file. Please<br> # see the man page for htdigest and then configure the following four directives<br> # to suit your authentication needs.<br> #<br> AuthType Digest<br> AuthName "MythTV"<br> AuthUserFile /var/www/htdigest<br> Require valid-user<br> BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On<br> # Order allow,deny<br> # Satisfy any<br> #<br> # * If you're running Apache earlier than 2.2, you will need to use<br> # the AuthDigestFile command instead of AuthUserFile (3rd line above).<br> #<br> ############################################################################<br></div><br></div></div></div>