This past week we've been busy moving our websites to a new web host. It's been a fair amount of work and changes required, but totally worth it. One of the problems we were facing was outright infurtiating.
We have a folder named
images and within this folder we had sub-folders such as
ads. Everything worked perfectly except for one folder
icons. No matter what we did every image within that specific place would not load. Every response was
- Apache configuration
I was at a dead end. Every file existed and everything was fine. I'd never experienced the problem and it was working fine on the other host.
It turns out that Apache (at least on Ubuntu) comes preinstalled with a module named
Provides for mapping different parts of the host filesystem in the document tree and for URL redirection.
Any by default it just so happens to alias a directory for
To fix it, follow these steps:
$ nano /etc/apache2/mods-enabled/alias.conf
Comment out the following line:
#Alias /icons/ "/usr/share/apache2/icons/"
Save the file, then restart the httpd service.
$ service apache2 restart
And now you'll be able to access your icons directory!