Embed widgets, and in particular Embed widgets iframe, is not working with the recommended Lighttpd configuration in this page http://drupal.org/node/43782

"The two following lines let Drupal handle any URL that doesn't contain a dot. This is significant because we can assume, fairly confidently, that addresses like /node/add are Drupal URLs, but addresses such as /themes/bluemarine/style.css are physical files. So the above configuration will work for all cases where this assumption holds true; if there are exceptions to the rule, they can be manually added to the rewrite configuration."

The problem here is that embed widgets uses a url like
http://www.example.com/embed-widgets/embed/iframe/1-aH.../iframe.js
and this URL contains a dot.

I fixed the problem adding this line to my lighttpd configuration:
"^/embed-widgets/(.*)$" => "/index.php?q=embed-widgets/$1"

By the way, I think the developers should consider removing the dot from the url.

Comments

jtsnow’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Your suggestion is to remove the iframe.js from the URL, correct? Consideration will be given to making this an option in the admin settings.

On the other hand, some other modules use this technique. The Google Analytics module comes to mine: http://drupal.org/project/google_analytics

Are there guidelines on a best practice for generating files on the file and not saving them as a physical file?

sersim’s picture

The URL could end with iframe_js or iframe-js if this doesn't cause any inconvenience.
Adding an option would be useful.

jtsnow’s picture

The iframe.js is there to give web browsers extra confidence that it is accessing a JavaScript file. Replacing with iframe-js or iframe-js would have no benefit.