Forum Moderators: phranque

Message Too Old, No Replies

my Apache 2.4 won't serve shared icons

         

Dan99

5:31 pm on Dec 30, 2015 (gmt 0)

10+ Year Member Top Contributors Of The Month



I just upgraded to El Capitan on my Mac. Got my web server working, but my served indices refuse to offer the icon set, which are contained in /usr/shared/httpd/icons. They used to serve just fine. In fact, when people request a directory, and get the index for that directory, it produces an error in my log -- "client denied by server configuration: /usr/share/httpd/icons/whatevericon.gif. That is, they get the directory, but without the handy icons. Those icons have permissions open to everyone, so it isn't a permission issue.

How do I get my system not to deny these shared icons?

More to the point, if I want to serve an icon that is not in this shared directory, how do I do that? El Capitan now adheres to the System Integrity Protection system, which means that I can't add icons to /usr/shared/httpd/icons, even as root.

phranque

3:14 am on Jan 5, 2016 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



/usr/shared/httpd/icons. They used to serve just fine. In fact, when people request a directory, and get the index for that directory, it produces an error in my log -- "client denied by server configuration: /usr/share/httpd/icons/whatevericon.gif

is there a typo problem?
(share vs shared)

Dan99

3:46 am on Jan 5, 2016 (gmt 0)

10+ Year Member Top Contributors Of The Month



Yeah, finally got it to work. Not quite sure what I did, but it took some uncommenting-out of lines in http.conf.

But as to the second point, how can I tell Apache to look elsewhere (other than /usr/shared/httpd/icons) for icons? I'd like to have control over the directory that serves them, and I don't anymore.