Page MenuHomeFreeBSD

Update pkg message for apache's latest security model
ClosedPublic

Authored by ler on Mar 16 2017, 7:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 5, 10:50 AM
Unknown Object (File)
Wed, Aug 28, 2:32 PM
Unknown Object (File)
Tue, Aug 27, 5:28 AM
Unknown Object (File)
Wed, Aug 14, 8:29 PM
Unknown Object (File)
Jul 25 2024, 12:02 PM
Unknown Object (File)
Jul 20 2024, 12:25 PM
Unknown Object (File)
Jul 5 2024, 3:56 PM
Unknown Object (File)
Jun 26 2024, 4:32 PM
Subscribers

Details

Summary

Update pkg message for apache 2.4 users for Apache 2.4's new security model.
PR: 217850
Submitted By: dirkx@webweaving.org
Approved By: (adamw|rene) (Mentor)

Test Plan

poudriere
portlint

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 8112
Build 8316: arc lint + arc unit

Event Timeline

Hold off on this, I'm not sure I want to do it. See my comments in #217850

Saying that you should add the AddHandler is a bad idea. It is not always true, many people use php through the fpm mechanism, this is why only the mod_php* ports tell you to add them.

loose the handler, and add apache 2.4 lines

www/joomla3/files/pkg-message.in
14

IIRC, that's not quite right. apache24 doesn't just add that line, it needs to replace at least the Allow from all line (possibly the Order line too?).

www/joomla3/files/pkg-message.in
14

that's how I have it for my installation at https://joomla.lerctr.org/

so, I'm not inclined to change that.

www/joomla3/files/pkg-message.in
14

You have

Allow from all
Require all granted

in your apache 2.4 setup?

www/joomla3/files/pkg-message.in
14

yes.

<VirtualHost 192.147.25.65:443>

ServerName joomla.lerctr.org
DocumentRoot /usr/local/www/joomla3
ErrorLog "/var/log/httpd/joomla-ssl-error_log"
CustomLog "/var/log/httpd/joomla-ssl-access_log" common

 <Location />
  Order deny,allow
  allow from all
  require all granted
 </Location>

TIL!

Go for it, but with 3 changes:

  1. Capitalize the R in Required to fit the other lines.
  2. Improve your commit message. Right now it's confusing and doesn't really say what the commit is about. Really it's about showing Apache 2.4 users what to do, not about a changing security model.
  3. You need more fields than just PR. This change was submitted by someone who deserves credit, and it needs an Approved by: field.
This revision is now accepted and ready to land.Mar 18 2017, 3:06 AM
This revision was automatically updated to reflect the committed changes.