logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache 2.4.61 invalid network path
Author
c.gradito



Joined: 27 Nov 2024
Posts: 2
Location: Italy

PostPosted: Thu 28 Nov '24 11:56    Post subject: Apache 2.4.61 invalid network path Reply with quote

Hello,
I use to work with our legacy web application hosted on Windwos 10, 11 or Server since several years integrating Apache 2.4.
A use case of this web app is to access to network resources of a nas by Apache.

Specifically we run the Apache24 service using domain credentials with access to the netowrk resources.

http.conf setup is:
Alias /images "//192.168.130.20/images/"
Alias /Images "//192.168.130.20/images/"

<Directory "//192.168.130.20/images/">
...

Everything works fine in Apache 2.4.57 or previous releases, the web app can retrieve files on the network share successfully.

Due to some vulnerabilities we decided to upgrade the web app to Apache 2.4.61.

Using the same http.conf and the same domain credentials, the service Apache24 doesn't start anymore.

From Windows Event Viewer:

The Apache service named reported the following error:
>>> [Thu Nov 28 10:32:59.051397 2024] [core:error] [pid 7812:tid 304] (13)Permission denied: AH10504: ap_filepath_merge: UNC path //192.168.130.20/images/ not allowed by UNCList

The Apache service named reported the following error:
>>> <Directory "//192.168.130.20/images/"> path is invalid. . .
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3094
Location: Hilversum, NL, EU

PostPosted: Thu 28 Nov '24 12:44    Post subject: Reply with quote

Please try the latest 2.4.62.

When that also gives issues, report it on https://httpd.apache.org/lists.html
Back to top
c.gradito



Joined: 27 Nov 2024
Posts: 2
Location: Italy

PostPosted: Thu 28 Nov '24 15:24    Post subject: Reply with quote

Thank you Mr. Steffen.
After investigating the issue we found out that from version 2.4.60 has been introduced the directive UNCList.

From Windows Event Viewer:
The Apache service named reported the following error:
>>> [Thu Nov 28 10:32:59.051397 2024] [core:error] [pid 7812:tid 304] (13)Permission denied: AH10504: ap_filepath_merge: UNC path //192.168.130.20/images/ not allowed by UNCList

Now using the same http.conf of the older 2.4.57 with one small change, the images can be retrieved.

I added before the aliases and the directive Directory the following text:
<IfModule core_module>
UNCList 192.168.130.20
</IfModule>


Alias /images "//192.168.130.20/images/"
Alias /Images "//192.168.130.20/images/"

<Directory "//192.168.130.20/images/">


So it seems no defect, but just a new configuration matter.
Back to top


Reply to topic   Topic: Apache 2.4.61 invalid network path View previous topic :: View next topic
Post new topic   Forum Index -> Apache