Hello, I only have shallow experience with nginx. To migrate an old php5-based application to the latest release which expects php7, I'd like to install both versions of PHP-FPM in one nginx server. Although I read elsewhere it's a mistake to install the php package instead of php-fpm because the former also installs Apacheā¦ this is what this document https://menchomneau.mediuby Shohreh - Nginx Mailing List - English
Yichun Zhang (agentzh) Wrote: ------------------------------------------------------- > Alternatively one can set the Content-Type response header directly in Lua (which is more flexible): > > content_by_lua ' > ngx.header["Content-Type"] = "text/plain" > ngx.say("hello world") > '; Thanks for the tip, it works. Isby Shohreh - Nginx Mailing List - English
Thanks for the tip. After editing nginx.conf thusly... ============== ... location / { root html; index index.html index.htm; content_by_lua_file html/hello.lua; add_header Content-Type text/plain; } ... ============== ... the script simply displays an empty page, with no error in logs/error.log. To avoid bothering you guys with newbie questions, is there a tuby Shohreh - Nginx Mailing List - English
Hello Now that I have a working Nginx with the ngx_lua module, I'd like to start learning how to write web scripts. The following page doesn't have a basic sample: http://wiki.nginx.org/HttpLuaModule So I used the following... http://yichunzhang.wordpress.com/2010/05/18/a-simple-ngx_lua-example-for-the-future/ ... to edit nginx.conf and write a basic hello.lua file: ================by Shohreh - Nginx Mailing List - English
Thanks, but this is for an appliance, so a virtual machine is too big. Recompiling with "--prefix" solved the problem.by Shohreh - Nginx Mailing List - English
Thanks for the idea, but I had to compile Nginx because the one available in the depot didn't have Lua compiled, and I'd rather compile both Nginx and Lua at the same time.by Shohreh - Nginx Mailing List - English
Thanks Yichun. This is what I ended up doing, because "make install DESTDIR=blah" triggered other errors.by Shohreh - Nginx Mailing List - English
Hello Using OpenResty, I compiled and installed a Lua-capable Nginx in /tmp so I could experiment with it before replacing the current Nginx that was installed through apt-get. However, since files are located in non-standard locations, Nginx can't find them: ==================================== /tmp/ngx_openresty-1.4.3.6/install/usr/local/openresty/nginx/sbin# ./nginx ./nginx: error whilby Shohreh - Nginx Mailing List - English
Hello I just installed Nginx 1.2.1 for the first time on an ARM appliance, and am trying to learn how to secure a folder by following some articles: http://wiki.nginx.org/HttpAuthBasicModule http://kbeezie.com/protecting-folders-with-nginx/ http://nginxlibrary.com/password-protect-a-directory/ After creating a new password and adding the "username:password" line to /etc/nginx/by Shohreh - Nginx Mailing List - English
Since it's on the same subject, I'll take advantage of this thread instead of starting a new one. When travelling, I'd like to keep a couple of files on my SOHO web server in case I lose my smartphone, but since they contain sensitive infos, I need to secure them somehow. I moved from Apache to Nginx, but the documentation doesn't recommend using .htaccess: "Like Apache: .htaccess. Youby Shohreh - Nginx Mailing List - English
Thanks everyone for the infos. "nginx -V" doesn't say where the docroot is, but I noticed that /etc/nginx/nginx.conf does use "/etc/nginx/conf.d/*.conf", where default.conf says: location / { root /usr/share/nginx/html Thank you.by Shohreh - Nginx Mailing List - English
I found a work-around: Reading "/var/log/nginx/error.log" includes a warning that Nginx can't find "/usr/share/nginx/html/favicon.ico", so for some reason, Nginx uses /usr/share/nginx/html/ instead of /var/www. I'm confused about the multiple configuration files used by Nginx: /etc/nginx.conf /etc/conf.d/ /etc/sites-available/ /etc/sites-enabled/ Why are there moreby Shohreh - Nginx Mailing List - English
Hello I'm running Nginx 1.4.1 on an appliance running Debian 6, and can't find from which directory Nginx is serving files. According to /etc/nginx.conf, the location for "/" is "root /var/www;", but even renaming the default index.html still displays the familiar "Welcome to nginx!". After using "apt-get upgrade" to upgrade from 1.2.? to 1.4.1, Iby Shohreh - Nginx Mailing List - English
djczaski Wrote: ------------------------------------------------------- > I've compiled for ARM A8. The biggest issue was configuring to use the system OpenSSL and pcre libraries. other than that , no problems. Thanks for the input. By any chance, did you write a tutorial that I could use to try and compile it for that other ARM processor?by Shohreh - Nginx Mailing List - English
Hello, I'd like to run Nginx on the SheevaPlug (http://en.wikipedia.org/wiki/SheevaPlug), which is based on Marvell's Kirkwood 88F6281 (ARM9E/ARMv5TE). I have a couple of newbie questions: 1. The archives of the mailing list (http://forum.nginx.org/read.php?2,227934,228360#msg-228360) include a reference to those ports based on older versions: http://packages.debian.org/search?arch=armby Shohreh - Nginx Mailing List - English