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.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th March 2013, 07: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:

Code:
location / {
        rewrite "^/blogs[/]{0,1}$"   /modules/boonex/blogs/blogs.php last;
}
The finel results that are passed to the vhost file are:
Code:
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.

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

Works for me. Please check your PHP settings (e.g. magic_quotes_gpc).
__________________
Falko
--
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
  #3  
Old 25th March 2013, 20:52
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
Default

Thanks Falko,
Though I have:

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

Code:
$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)
Reply

Bookmarks

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 17:34
Debugging nginx directives ItsDom Installation/Configuration 3 5th January 2013 11:46
SOAP API problems in 3.0.4.6 Disassembler Developers' Forum 9 25th November 2012 09:14
nginx + php-fpm = various problems for SOME sites inc 500 or 404 or no input file talkingnews Installation/Configuration 3 11th December 2011 18:02
local ip:8080 just downloads a file called download or index.php dr_patso Installation/Configuration 5 20th September 2011 20:54


All times are GMT +2. The time now is 14:46.


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