문제

I have a directory called /var/www/icons on my web server, which is also referenced as an alias in my Apache config as seen below:

Alias /icons/ "/var/www/icons/"

The directory contains a number of small PNGs and GIFs, which AFAIK are unused, along with a README file.

Am I safe to remove this alias from my Apache config by commenting it out? If not, what area of my application is the removal of this likely to effect?

There is very little documentation available on this directory and I must admit i've never came across it up until now.

도움이 되었습니까?

해결책

Most icons are used for displaying file types in directory listings. If you do not use such listings, you can safely remove alias + files. I did so and do not miss them.

다른 팁

It is for sure safe to remove it. Other conf files could reference /icons (e. g. the autoindex module) but apart from some not found errors nothing nasty should happen.

My advice: scan the access.log files to see if urls rooted at /icons are accessed. Delete the alias and monitor the error.log file for 404 errors.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top