Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 20th March 2013, 08:22
abdi abdi is offline
Senior Member
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
Exclamation API Nginx directives problems

Hello Till,

I just noticed that when you save an Nginx directive through API eg:

location / {
        rewrite "^/blogs[/]{0,1}$"   /modules/boonex/blogs/blogs.php last;
The finel results that are passed to the vhost file are:
location / {
        rewrite \"^/blogs[/]{0,1}$\"   /modules/boonex/blogs/blogs.php last; 	
As you have noticed, it adds \" where there is "
With that modification, it kills the directives and thus they can NOT work.

Is this a configuration problem or a bug (I report it in bug tracker)?

NB: I would like to make that change in the API file it self if its embeded there then will pass it to you if its a bug ...But I request that you point me to the location of the API functions on the debian server.

Reply With Quote
Sponsored Links
Old 25th March 2013, 10:54
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts

Works for me. Please check your PHP settings (e.g. magic_quotes_gpc).
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Old 25th March 2013, 21:52
abdi abdi is offline
Senior Member
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts

Thanks Falko,
Though I have:

magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
Never the less I seem to have resolved it with:

$params['nginx_directives'] = stripslashes($nginx_directives);
Reply With Quote
The Following User Says Thank You to abdi For This Useful Post:
falko (28th March 2013)


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with self-compiled nginx Ovidiu Server Operation 2 12th February 2013 18:34
Debugging nginx directives ItsDom Installation/Configuration 3 5th January 2013 12:46
SOAP API problems in Disassembler Developers' Forum 9 25th November 2012 10:14
nginx + php-fpm = various problems for SOME sites inc 500 or 404 or no input file talkingnews Installation/Configuration 3 11th December 2011 19:02
local ip:8080 just downloads a file called download or index.php dr_patso Installation/Configuration 5 20th September 2011 21:54

All times are GMT +2. The time now is 04:37.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.