Icon Not Linked

The forum for help and support with FreeNATS as well as any useful hints and tips
Post Reply
dman
Posts: 4
Joined: Tue Dec 14, 2010 4:01 pm

Icon Not Linked

Post by dman » Tue Dec 14, 2010 4:15 pm

I have everything installed and working. The one open issue is the icons for the devices are showing up as broken links. During the installation I moved the web folder to /var/www. I made the change in /opt/freenats/server/base/config.inc.php to point to the new web location. I verified that the access is right to the /var/www/icon and /var/www/images. Is there another file that needs to configured to fix this?

dave
Site Admin
Posts: 260
Joined: Fri May 30, 2008 9:09 pm
Location: UK
Contact:

Re: Icon Not Linked

Post by dave » Tue Dec 14, 2010 4:23 pm

Hi dman,

This is probably a default apache configuration that aliases the /icons/ directory.

To resolve: open up your apache config (usually /etc/httpd/conf/httpd.conf or similar) and find the following line:
Alias /icons/ "/var/www/icons/"

Comment it out (with a # at the start).

Now reload your config or restart apache and all should be well.

Sadly this was something missed in original testing as development was done under a sub-folder and now is established.

Let me know if that solves your problem.

Cheers,

Dave.

dman
Posts: 4
Joined: Tue Dec 14, 2010 4:01 pm

Re: Icon Not Linked

Post by dman » Tue Dec 14, 2010 7:45 pm

This worked like a charm, thank you! The icons are now viewable. Running from Ubuntu Server 10.10 the file that was edited was /etc/apache2/mods-enabled/alias.conf. This is a view of the file after the lines have been commented out (highlighted text):

<IfModule alias_module>
#
# Aliases: Add here as many aliases as you need (with no limit). The format is
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL. So "/icons" isn't aliased in this
# example, only "/icons/". If the fakename is slash-terminated, then the
# realname must also be slash terminated, and if the fakename omits the
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings. If
# you do not use FancyIndexing, you may comment this out.
#
#Alias /icons/ "/usr/share/apache2/icons/"
#
#<Directory "/usr/share/apache2/icons">
# Options Indexes MultiViews
# AllowOverride None
# Order allow,deny
# Allow from all
#</Directory>
#

</IfModule>

dave
Site Admin
Posts: 260
Joined: Fri May 30, 2008 9:09 pm
Location: UK
Contact:

Re: Icon Not Linked

Post by dave » Tue Dec 14, 2010 7:50 pm

Great - glad it worked and thanks for the config details.

Hope you find FreeNATS useful.

Regards,

Dave.

Post Reply