[mythtv-commits] Re: Ticket #920: mythweb rewriting rules break when using Alias in httpd.conf

MythTV mythtv at cvs.mythtv.org
Wed Jan 4 17:15:14 UTC 2006


#920: mythweb rewriting rules break when using Alias in httpd.conf
-------------------------------+--------------------------------------------
 Reporter:  martin at zepler.org  |        Owner:  xris
     Type:  patch              |       Status:  new 
 Priority:  minor              |    Milestone:      
Component:  mythtv             |      Version:  head
 Severity:  medium             |   Resolution:      
-------------------------------+--------------------------------------------
Changes (by martin at zepler.org):

  * type:  defect => patch

Comment:

 Turns out that this is caused by the hacky implementation of mod_rewrite.
 Although it pretends to operate on URLs it actually operates on filenames
 with the directory part removed. Thus aliases cause it to break. The
 documentation at http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html
 explains to use 'RewriteBase' so that mod_rewrite appends the correct base
 URL after rewriting.

 Unfortunately it doesn't appear to be possible to use this 'RewriteBase'
 in a way that will work no matter where mythweb is located, it needs to be
 customised for each location. Hence the patch I've just added simply puts
 a comment in the .htaccess file so people know how to work around this
 problem.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/920>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list