agree that hierarchy in inf will be ugly. you have to be a guru in regular expressions to create a UI for the current nginx configuration format. with xml, json yaml etc their are plenty of libraries that can read and right them easily. Or Nginx can provide an api that i can use to read and write nginx.conf files. that's for Igor to decide. On Tue, May 4, 2010 at 9:57 PM, Michael Shadle <mikby MySchizoBuddy - Nginx Mailing List - English
nginx.conf file in inf format or any other template based format would have been the easiest thing to do. perhaps future version of nginx can go down this route. On Mon, May 3, 2010 at 9:12 PM, Michael Shadle <mike503@gmail.com> wrote: > I have a php command line script that builds separate conf files in one of > my servers and does simple string replacement. > > Also rememberby MySchizoBuddy - Nginx Mailing List - English
So I store the configuration in a database or xml file or whatever, and then generate the conf file from it. thank you. On Mon, May 3, 2010 at 3:14 AM, Gabriel Evans <me@gabevans.com> wrote: > There's no API that I know of, unless you want to make your own module. You > could try having a separate directory for virtual hosts included and use a > database to store and generate theby MySchizoBuddy - Nginx Mailing List - English
Inorder to make a simple UI for editing nginx.conf. I need a way to edit nginx.conf without having to open it up in a text editor. Does nginx have an api that i can use to edit information that is inside nginx.conf. This will help newbies add virtual host information and edit parameters via a UI. _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/maby MySchizoBuddy - Nginx Mailing List - English
oh so i have to use rewrite command and not try_files command. no wonder i wasn't getting anything is there a log for try_files? On Thu, Dec 10, 2009 at 5:57 PM, Maxim Dounin <mdounin@mdounin.ru> wrote: > Hello! > > On Thu, Dec 10, 2009 at 05:37:04PM +0500, Ziyad Saeed wrote: > > > Where do you use that directive. Under the HTTP block its giving me no > > errors >by MySchizoBuddy - Nginx Mailing List - English
Where do you use that directive. Under the HTTP block its giving me no errors On Thu, Dec 10, 2009 at 3:41 AM, Maxim Dounin <mdounin@mdounin.ru> wrote: > Hello! > > On Wed, Dec 09, 2009 at 09:22:32PM +0500, Ziyad Saeed wrote: > > > is there a rewrite log file that shows what is the rewrite engine doing, > > what is it trying to match and failing etc > > rewritby MySchizoBuddy - Nginx Mailing List - English
is there a rewrite log file that shows what is the rewrite engine doing, what is it trying to match and failing etc _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby MySchizoBuddy - Nginx Mailing List - English
Whats the recommended setting of these php parameters for nginx server cgi.fix_pathinfo = 1 cgi.force_redirect = 0by MySchizoBuddy - Nginx Mailing List - English
one slight issue when i go to dev.flow3.local/flow3/Welcome it works fine. but when i go to dev.flow3.local/ or dev.flow3.local/index.php it gives me an error http request count is zero while sending to client, client: 127.0.0.1, server: dev.flow3.local, request: "GET / HTTP/1.1", upstream: "fastcgi:// 127.0.0.1:9000", host: "dev.flow3.local" 2009/9/16 Igor Sysoev &by MySchizoBuddy - Nginx Mailing List - English
Is there a way to define my own variables like in any programming languageby MySchizoBuddy - Nginx Mailing List - English
can i set worker_processes to _SERVER["NUMBER_OF_PROCESSORS"] looking in phpinfo there is a server variable that mentions the number of processorsby MySchizoBuddy - Nginx Mailing List - English
fastcgi_param isn't allowed inside an if statement The code below doesn't work. Any workaround available if ($host ~* ^dev\.flow3\.local$) { fastcgi_param FLOW3_CONTEXT Development; } if ($host ~* ^flow3\.local$) { fastcgi_param FLOW3_CONTEXT Production; }by MySchizoBuddy - Nginx Mailing List - English
Thankyou fastcgi_param FLOW3_WEBPATH C:/nginx/html/flow3/Web/; 2009/9/17 Igor Sysoev <is@rambler-co.ru> > On Thu, Sep 17, 2009 at 03:02:21AM +0500, Ziyad Saeed wrote: > > > The php framework flow3 by typo3 uses environment variables for certain > > things. It looks them up in the _SERVER global variables list. > > If you use FastCGI, then something like this: &gby MySchizoBuddy - Nginx Mailing List - English
Thankyou Igor the solution worked 2009/9/16 Igor Sysoev <is@rambler-co.ru> > On Tue, Sep 15, 2009 at 11:23:22PM +0500, Ziyad Saeed wrote: > > > The url is http://dev.flow3.local/flow3/welcome > > Here is the error > > CreateFile() "C:\nginx/htmlindex.php/flow3/welcome" failed (3: The system > > cannot find the path specified) > > The redirectedby MySchizoBuddy - Nginx Mailing List - English
The php framework flow3 by typo3 uses environment variables for certain things. It looks them up in the _SERVER global variables list. 2009/9/16 Igor Sysoev <is@rambler-co.ru> > On Tue, Sep 15, 2009 at 09:24:55PM +0500, Ziyad Saeed wrote: > > > ur correct i tried it and it doesn't do what i thought it did. > > I'm trying to the same thing as before. assign an environmentby MySchizoBuddy - Nginx Mailing List - English
so Igor should i use relative or absolute path for script_filename and root 2009/9/16 Igor Sysoev <is@rambler-co.ru> > On Tue, Sep 15, 2009 at 10:27:27PM +0500, Ziyad Saeed wrote: > > > I have seen nginx.conf for linux systems and they start with a / which > means > > its an absolute path. > > For windows, is it absolute or relative. > > same goes for the rby MySchizoBuddy - Nginx Mailing List - English
The url is http://dev.flow3.local/flow3/welcome Here is the error CreateFile() "C:\nginx/htmlindex.php/flow3/welcome" failed (3: The system cannot find the path specified) This is horribly wrong. I'm using try_files for a very simple rewrite rule. my server code is server { listen 80; server_name dev.flow3.local; location / { root html/flow3/Web;by MySchizoBuddy - Nginx Mailing List - English
I have seen nginx.conf for linux systems and they start with a / which means its an absolute path. For windows, is it absolute or relative. same goes for the root directive is it absolute path or relative pathby MySchizoBuddy - Nginx Mailing List - English
ur correct i tried it and it doesn't do what i thought it did. I'm trying to the same thing as before. assign an environment variable. reading the Map directive documentation. It doesn't do that either. 2009/9/15 Igor Sysoev <is@rambler-co.ru> > On Tue, Sep 15, 2009 at 08:55:59PM +0500, Ziyad Saeed wrote: > > > Where does the env directive go. > > I'm using it under the Sby MySchizoBuddy - Nginx Mailing List - English
upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while reading response header from upstream, client: 127.0.0.1, server: dev.flow3.local, request: "GET / HTTP/1.1", upstream: "fastcgi:// 127.0.0.1:9000", host: "deby MySchizoBuddy - Nginx Mailing List - English
Where does the env directive go. I'm using it under the Server scopeby MySchizoBuddy - Nginx Mailing List - English
Btw I'm using nginx on windows with php 5.3 On Tue, Sep 15, 2009 at 5:37 PM, Ziyad Saeed <myschizobuddy@gmail.com>wrote: > Variable directive not found > > Let me clarify > > If http://flow3.local/* > then FLOW3_CONTEXT = Production > > If http://dev.flow3.local/* > then FLOW3_CONTEXT = Development > > > 2009/9/15 Igor Sysoev <is@rambler-co.ru> &gby MySchizoBuddy - Nginx Mailing List - English
Variable directive not found Let me clarify If http://flow3.local/* then FLOW3_CONTEXT = Production If http://dev.flow3.local/* then FLOW3_CONTEXT = Development 2009/9/15 Igor Sysoev <is@rambler-co.ru> > On Tue, Sep 15, 2009 at 02:54:44PM +0500, Ziyad Saeed wrote: > > > How do I set an environment variable based on the domainFor ex if the > domain > > is http://devby MySchizoBuddy - Nginx Mailing List - English
How do I set an environment variable based on the domainFor ex if the domain is http://dev.flow3.local then FLOW3_CONTEXT = Development. Otherwise its Production Nginx 0.8.15by MySchizoBuddy - Nginx Mailing List - English
whats the way to set environment or server variables from nginx. i have read somewhere about an ENV directive. although it isn't in the documentation Can you link to documentation about try_files Thank you for you help. I appreciate itby MySchizoBuddy - Migration from Other Servers
i had the same error appear in apache. turns out mod_rewrite was disabled How Do i enable the rewrite module on nginx. It says in the documentation that it comes preinstalled I'm using the nginx 0.8.15by MySchizoBuddy - Migration from Other Servers
I'm getting this error 2009/09/15 03:47:30 2072#3228: *1 CreateFile() "C:\nginx/html/flow3/Web/index.php/flow3/welcome" failed (3: The system cannot find the path specified), client: 127.0.0.1, server: dev.flow3.local, request: "GET /flow3/welcome HTTP/1.1", host: "dev.flow3.local" its correct there is no file called flow3/welcome. flow3 and welcome are paraby MySchizoBuddy - Migration from Other Servers
In Apache I can set an environment variable using SetEnv For E.g <VirtualHost *:80> DocumentRoot /var/apache2/htdocs/tutorial/Web/ ServerName dev.tutorial.local SetEnv FLOW3_CONTEXT Development </VirtualHost> Whats the equivalent way to do it in Nginx Second whats the correct rewrite rule for this simple one # Continue only if the file/symlink/directory does noby MySchizoBuddy - Migration from Other Servers