[olug] Apache question

Lou Duchez lou at paprikash.com
Fri Jul 28 09:12:29 CDT 2023


To summarize, either update the syntax or install mod_access_compat.

On 7/28/2023 9:16 AM, Craig Wolf wrote:
> Thank you!  I will remote into his system this weekend and see if I can
> make things work.  I just assumed that the config file from Apache would
> work out of the box.
>
> Silly me.  :)
>
> Craig Wolf
> (402)990-3010
>
> Strengths: Activator, Relator, Adaptability, Learner, Achiever
> Take a moment to Make a moment! - Shekeela/VZW
>
>
> On Fri, Jul 28, 2023 at 3:32 AM Lou Duchez <lou at paprikash.com> wrote:
>
>> ... wait, I want to change my answer. I do actually have a "<Directory
>> />" section, and it controls what happens to the root directory.
>>
>> And when I put in the contents you have for your "<Directory />"
>> section, Apache loads properly, but it won't serve any content. Which is
>> probably because of "Order deny,allow" followed by "Deny from all" -- so
>> first thing Apache does is it decides not to serve any content anywhere
>> under "/".
>>
>> My normal "<Directory />" section looks like this, and it treats me well:
>>
>> <Directory />
>>       AllowOverride none
>>       Require all denied
>> </Directory>
>>
>> Lord Google is telling me that "Require all denied" is the currently
>> acceptable way to say "Order" and then "Deny".
>>
>> https://httpd.apache.org/docs/2.4/upgrading.html
>>
>> In 2.2, access control based on client hostname, IP address, and other
>> characteristics of client requests was done using the directives|Order
>> <https://httpd.apache.org/docs/2.4/mod/mod_access_compat.html#order>|,|Allow
>>
>> <https://httpd.apache.org/docs/2.4/mod/mod_access_compat.html#allow>|,|Deny
>>
>> <https://httpd.apache.org/docs/2.4/mod/mod_access_compat.html#deny>|,
>> and|Satisfy
>> <https://httpd.apache.org/docs/2.4/mod/mod_access_compat.html#satisfy>|.
>>
>> In 2.4, such access control is done in the same way as other
>> authorization checks, using the new module|mod_authz_host
>> <https://httpd.apache.org/docs/2.4/mod/mod_authz_host.html>|. The old
>> access control idioms should be replaced by the new authentication
>> mechanisms, although for compatibility with old configurations, the new
>> module|mod_access_compat
>> <https://httpd.apache.org/docs/2.4/mod/mod_access_compat.html>|is
>> provided.
>>
>>
>>        2.2 configuration:
>>
>> Orderdeny,allow Denyfrom all
>>
>>
>>        2.4 configuration:
>>
>> Requireall denied
>>
>>
>>
>>
>> On 7/28/2023 4:18 AM, Lou Duchez wrote:
>>> Personally I would concur. Looking at my httpd.conf, I've got
>>> "<Directory>" a few times, but never "<Directory />".
>>>
>>>
>>> On 7/27/2023 10:37 PM, Craig Wolf wrote:
>>>> So, you believe that the this:
>>>> <Directory />
>>>> should be this?
>>>> <Directory>
>>>> Correct??
>>>>
>>>> Craig Wolf
>>>> (402)990-3010
>>>>
>>>> Strengths: Activator, Relator, Adaptability, Learner, Achiever
>>>> Take a moment to Make a moment! - Shekeela/VZW
>>>>
>>>>
>>>> On Mon, Jul 24, 2023 at 4:01 PM Dave Pfister <dave.pfister at gmail.com>
>>>> wrote:
>>>>
>>>>> Looks like you have a closing slash on your opening Directory tag.
>>>>>
>>>>> On Sun, Jul 23, 2023 at 3:42 PM Craig Wolf <wolfout101 at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> So, trying to get Apached running on Windows 11 for a home user and I
>>>>> JUST
>>>>>> don't hands on this stuff anymore so I need a little help:
>>>>>> Trying to launch Apache and getting this
>>>>>> Invalid command "Order", perhaps misspelled or defined by a module not
>>>>>> included in the server configuration.
>>>>>>
>>>>>> Here is that section it kicks out on startup and errors:
>>>>>> <Directory />
>>>>>>
>>>>>>       Options FollowSymLinks
>>>>>>
>>>>>>       AllowOverride None
>>>>>>
>>>>>>       Order deny,allow
>>>>>>
>>>>>>       Deny from all
>>>>>>
>>>>>>       Satisfy all
>>>>>>
>>>>>> </Directory>
>>>>>>
>>>>>> When I remove that whole section, it errors on the next Order command.
>>>>>>
>>>>>> This is a current download/unzip to the apache24 directory. httpd.conf
>>>>> was
>>>>>> edited to ensure pointing to the proper location and port.  C++
>>>>>> redistributable was installed per instructions I found and system has
>>>>> been
>>>>>> rebooted twice to ensure everything else is clean.
>>>>>>
>>>>>> What am I missing??  TIA!
>>>>>> Craig Wolf
>>>>>> (402)990-3010
>>>>>>
>>>>>> Strengths: Activator, Relator, Adaptability, Learner, Achiever
>>>>>> Take a moment to Make a moment! - Shekeela/VZW
>>>>>> _______________________________________________
>>>>>> OLUG mailing list
>>>>>> OLUG at olug.org
>>>>>> https://www.olug.org/mailman/listinfo/olug
>>>>>>
>>>>> --
>>>>> "The empires of the future are the empires of the mind."
>>>>>     - Winston Churchill
>>>>> _______________________________________________
>>>>> OLUG mailing list
>>>>> OLUG at olug.org
>>>>> https://www.olug.org/mailman/listinfo/olug
>>>>>
>>>> _______________________________________________
>>>> OLUG mailing list
>>>> OLUG at olug.org
>>>> https://www.olug.org/mailman/listinfo/olug
>>> _______________________________________________
>>> OLUG mailing list
>>> OLUG at olug.org
>>> https://www.olug.org/mailman/listinfo/olug
>> _______________________________________________
>> OLUG mailing list
>> OLUG at olug.org
>> https://www.olug.org/mailman/listinfo/olug
>>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> https://www.olug.org/mailman/listinfo/olug



More information about the OLUG mailing list