Removal of the /var/www/icons alias from Apache config [closed]

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 17:40:30

问题


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.


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/12110693/removal-of-the-var-www-icons-alias-from-apache-config

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!