[Bug 1394403] Re: RewriteRule of "^$" is broken
To reproduce (s. attachment): vhost bla.conf (requires a2enmod proxy_http) enables RewriteEngine/RewriteLogging and Proxy DocumentRoot /var/www/bla /var/www/bla/.htaccess: RewriteRule ^(.*)$ http://10.110.110.29/$1 [P] no other files in /var/www/bla/ request / (as in attached reproduce-1394403.sh): $ (printf "GET / HTTP/1.0\r\nHost: bla\r\n\r\n"; sleep 1) | netcat localhost 80 in the ErrorLog (/var/log/apache2/bla_error.log) you can see that after the first go-ahead with proxy request proxy:http://10.110.110.29/ [OK] mod_rewrite is called a second time for the same request, but this time with /index.html instead of just / This is from mod_dir not honoring the final decision of mod_rewrite ([P]). Matthias ** Attachment added: "apache configuration snippets to reproduce the bug" https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1394403/+attachment/4473801/+files/reproduce-1394403.tgz -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/1394403 Title: RewriteRule of "^$" is broken To manage notifications about this bug go to: https://bugs.launchpad.net/apache2/+bug/1394403/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1394403] Re: RewriteRule of "^$" is broken
Hi, apparently only part of the fix was included, http://svn.apache.org/viewvc?view=revision&revision=1557641 seems to be missing. That is the part that keeps mod_dir from firing when mod_rewrite just fired. Rewrites in .htaccess are still affected after upgrade to 2.4.7-1ubuntu4.6. Matthias -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/1394403 Title: RewriteRule of "^$" is broken To manage notifications about this bug go to: https://bugs.launchpad.net/apache2/+bug/1394403/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1394403] [NEW] apache 2.4.7 mod_dir bug PR53929
Public bug reported: Ubuntu 14.04LTS x86_64 In apache 2.4.7 there is a bug in mod_dir, in that it does not stop when the URL has just been rewritten by mod_rewrite. If you have rewrite rules in .htaccess, ending in a [P] for an external URL, rule execution should stop and mod_proxy should go and fetch the given URL. Instead, mod_dir fires another round of rewrite rule checks as it looks for .../index.html, possibly giving completely different results (e.g. not fetching from remote site). http://www.apachelounge.com/Changelog-2.4.html: ... *) mod_dir: Don't search for a DirectoryIndex or DirectorySlash on a URL that was just rewritten by mod_rewrite. PR53929. [Eric Covener] ... http://stackoverflow.com/questions/17095981/why-apache-mod-rewrite- rewrites-twice-my-url Please backport the for PR53929 (or update apache package to 2.4.9) ** Affects: apache2 (Ubuntu) Importance: Undecided Status: New ** Tags: apache rewrite -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in Ubuntu. https://bugs.launchpad.net/bugs/1394403 Title: apache 2.4.7 mod_dir bug PR53929 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1394403/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1394394] [NEW] pm-suspend-wakeup-hibernate (aka pm-suspend-hybrid before 3.6)
Public bug reported: Ubuntu 14.04LTS pm-utils 1.4.1-13ubuntu0.1 before kernel 3.6, pm-suspend-hybrid would do suspend/wakeup/hibernate (with full power-off). since kernel 3.6, pm-suspend-hybrid will do suspend-to-both (without full power-off). The old functionality is not available any more. At times I would prefer using the old method, but pm-utils does not offer it anymore. Attached patch adds back the old functionality, either by - setting SUSPEND_HYBRID_MODULE variable to "suspend_wakeup_hibernate" in some /etc/pm/config.d- or /etc/pm/pm-suspend.config.d- File - invoking /usr/lib/pm-utils/bin/pm-action from a symlink called pm-suspend-wakeup-hibernate ** Affects: pm-utils (Ubuntu) Importance: Undecided Status: New ** Tags: hibernate hybrid pm-utils suspend ** Attachment added: "re-add suspend/wakeup/hibernate w/poweroff functionality" https://bugs.launchpad.net/bugs/1394394/+attachment/4264037/+files/pm_suspend_wakeup_hibernate.patch -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to pm-utils in Ubuntu. https://bugs.launchpad.net/bugs/1394394 Title: pm-suspend-wakeup-hibernate (aka pm-suspend-hybrid before 3.6) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1394394/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1394388] [NEW] pm-suspend not restoring /sys/power/disk with /bin/dash
Public bug reported: Ubuntu 14.04LTS pm-utils 1.4.1-13ubuntu0.1 When issuing the pm-suspend command, the scripts set the HIBERNATE_MODE in /sys/power/disk to "suspend". There is some shell magic to save the previous setting in variable HIBERNATE_MODE_SAVE, but this fails under the default shell /bin/dash (works correctly with /bin/bash). Effect: if you use pm-suspend once, the effective HIBERNATE_MODE in /sys/power/disk stays in "suspend", and any subsequent pm-hibernate will also just do a suspend instead of "platform" or "shutdown". ** Affects: pm-utils (Ubuntu) Importance: Undecided Status: New ** Tags: bashism hibernate pm-utils suspend ** Patch added: "escape special chars in parameter expansion for HIBERNATE_MODE_SAVE" https://bugs.launchpad.net/bugs/1394388/+attachment/4264030/+files/hibernate_mode_save-bashism.patch -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to pm-utils in Ubuntu. https://bugs.launchpad.net/bugs/1394388 Title: pm-suspend not restoring /sys/power/disk with /bin/dash To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1394388/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs