Nginx and syntaxhighlighter_insert module

Events happening in the community are now at Drupal community events on www.drupal.org.
flocondetoile's picture

Hello,

I'm trying to use the syntaxhighlighter_insert on my drupal site.
I use the perusio's configuration for my nginx server.

When i use this module in a wysiwyg editor, he try to open the form at the adress below

http://drupal.local/index.php?q=syntaxhighlighter_insert_wysiwyg/insert/

Of courses i obtain a 404 page as the configuration reject with a 404 error any other attempt to access to PHP files

Any other attempt to access PHP files returns a 404

location ~* ^.+.php$ {
return 404;
}

So, Have you got an idea how to access to this form ?
I try differents specific location without success.

May be can i patch the module to modify the hook_menu in order to not invoke index.php in the request ? Do you know the argument to use for this ?

Thanks

Comments

a quick fix is available in

flocondetoile's picture

a quick fix is available in this issue : unable to get the wysiwyg form on a nginx server - error 404

But I am always interested to know how to add a location in my configuration to circumvent this problem.

I disagree

perusio's picture

it's not a quick fix it's the right thing to do. Perhaps remove the commented line of the variable declaratio and just leave the correct line (w/o index.php in the URI).

Nginx

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: