Posted by drupov on February 17, 2014 at 4:49am

Thanks for the quick reply. #21 clarifies this.

I just discovered that the path /icons/my_bundle does work on my Ubuntu development machine when I have no Virtual Host entry for the site, e.g. localhost/drupal_icons/icons/my_bundle.

If I use a VH entry I get a Apache "Not Found" error on drupal_icons.local/icons/my_bundle. The same on the site I develop right now, as well as on the fresh drupal install I am testing icon on.

Does it have something to do with the fact that icons is an aliased path?

Posted by Mark Carver on February 17, 2014 at 5:13am

I run an nginx stack and I'm not seeing this at all. I am seeing it on http://sff120b8134c72a7.s3.simplytest.me/icons/lullacons_pack1. However, when I prepend it with non-clean url query parameter it works: http://sff120b8134c72a7.s3.simplytest.me/?q=icons/lullacons_pack1

I did a little googling and it turns out Apache appears to have an aliases "/icons" path turned on by default:
http://stackoverflow.com/questions/12110693/removal-of-the-var-www-icons...

So the solution is to rename your path alias or just remove that from your configuration.

Comments

markhalliwell’s picture

Status: Active » Fixed

Committed 8196cc8 to 7.x-1.x:

Issue #2198427 by Mark Carver | drupov: Apache server alias /icons conflicts with module.

markhalliwell’s picture

Committed 0ecd192 to 7.x-1.x:

Issue #2198427 by Mark Carver | drupov: Apache server alias /icons conflicts with module.

drupov’s picture

Very nice. Works perfectly. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

  • Commit 8196cc8 on 7.x-1.x, icon_tabs-integration by Mark Carver:
    Issue #2198427 by Mark Carver | drupov: Apache server alias /icons...
  • Commit 0ecd192 on 7.x-1.x, icon_tabs-integration by Mark Carver:
    Issue #2198427 by Mark Carver | drupov: Apache server alias /icons...
Kebz’s picture

Just wondering ... it's been a year since this convo took place.

I am getting this warning msg:

WARNING: Apache installations are typically configured with a server level alias that redirects "/icons" to an internal directory on the server. It is highly recommended that this be removed from the configuration file for the view path to work properly. If this modification has been made to the server, you may surpress this messages in the global settings below. The only alternative is to change the view path in the global settings below. See: https://drupal.org/node/2198427.

How do we know if the view path is not working properly?

In the configuration area .... under Bundles, it says this ...

GLOBAL SETTINGS
View Path
/icons
If provided, users with the "view icons" permission will be able to view enabled icons at this URL (defaults to: /icons. Change this url if it conflicts with other paths on your site. Leave empty to disable.

So all I have to do is change the path or disable this? Where exactly is this path and what files are in it??

codeangle’s picture

Is it in .htaccess. I searched in the whole document. Any help?

Kebz’s picture

Status: Closed (fixed) » Needs review
markhalliwell’s picture

Status: Needs review » Closed (fixed)

Do not open closed issues.

This is part of your Apache configuration (httpd.conf, not .htaccess) as stated in the warning. This is for configuring a path that anyone can view (i.e. not in the administration section) for all users to view the icon bundles.

http://lmgtfy.com/?q=apache+icons
http://stackoverflow.com/questions/12110693/removal-of-the-var-www-icons...
http://stackoverflow.com/questions/4433631/apache-how-to-override-index-...

Bruno Vincent’s picture

How can I do this?

"So the solution is to rename your path alias or just remove that from your configuration."

Where is the path to rename?

Where is the configuration file?

What exact code to remove from the configuration file on what line?

I've read all refferences to other pages, but I don't undestand how to do this, I am using Drupal 7 , aquia dev desktop, ICON Api module

philsward’s picture

For better clarification to those of you who were as confused as I was at first, the directions are all there:

If provided, users with the "view icons" permission will be able to view enabled icons at this URL (defaults to: /icons. Change this url if it conflicts with other paths on your site. Leave empty to disable.

1) Unless you have other people editing stuff on the site who "need" access to know what icons are in the list, you don't have anything to worry about.

2) If you physically go to http://yourwebsite.whatevs/icons and you're redirected somewhere OTHER than a page that shows the list of icon bundles within your site, you don't have anything to worry about.

3) If you aren't already using the path /icons for anything else on your site, you don't have anything to worry about.

---

If you match any of the 3 scenarios, then simply change it from /icons to /icon-bundles or something and then disable the warning.

Oh, and if all else fails, blank out the "icons" from the form field and just disable the page altogether.