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

markcarver’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.

markcarver’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
markcarver’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