nginx webserver

Browsers, email, chat, etc.
Post Reply
Message
Author
miki
Posts: 16
Joined: Mon 02 Nov 2009, 12:26

nginx webserver

#1 Post by miki »

Hi everyone!
I'm entering the kennels with a tiny yet powerful HTTP server and mail proxy server written by Igor Sysoev, called nginx.

More info on the apps' wiki.

Note: I compiled this on puppy 4.30, with default options.
If you need more extras: compile one yourself :)

After installing you have to navigate to /usr/local/nginx/.
There are no menu entries in the PET.

nicomate
Posts: 6
Joined: Fri 29 Jun 2012, 09:54
Location: Tokyo, Japan
Contact:

nginx 1.0.14.pet

#2 Post by nicomate »

i am posting a nginx 1.0.14.pet, compiled in slacko. works great.

Tatyana
Posts: 2
Joined: Tue 12 Jan 2016, 18:37

Re: nginx webserver

#3 Post by Tatyana »

miki wrote:Hi everyone!
I'm entering the kennels with a tiny yet powerful HTTP server and mail proxy server written by Igor Sysoev, called nginx.

More info on the apps' wiki.

Note: I compiled this on puppy 4.30, with default options.
If you need more extras: compile one yourself :)

After installing you have to navigate to /usr/local/nginx/.
There are no menu entries in the PET.
How to download?

Tatyana
Posts: 2
Joined: Tue 12 Jan 2016, 18:37

Re: nginx 1.0.14.pet

#4 Post by Tatyana »

nicomate wrote:i am posting a nginx 1.0.14.pet, compiled in slacko. works great.
How to download?

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#5 Post by Semme »

Which pup Tatyana? Via PPM, the pkg+deps are available for both Slacko and Tahr..

Code: Select all

sh-4.1# nginx -h
nginx version: nginx/1.x.xx
Usage: nginx [-?hvVt] [-s signal] [-c filename] [-p prefix] [-g directives]

Options:
  -?,-h         : this help
  -v            : show version and exit
  -V            : show version and configure options then exit
  -t            : test configuration and exit
  -s signal     : send signal to a master process: stop, quit, reopen, reload
  -p prefix     : set prefix path (default: /usr/local/nginx/)
  -c filename   : set configuration file (default: /etc/nginx/nginx.conf)
  -g directives : set global directives out of configuration file

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#6 Post by s243a »

Semme wrote:Which pup Tatyana? Via PPM, the pkg+deps are available for both Slacko and Tahr..

Code: Select all

sh-4.1# nginx -h
nginx version: nginx/1.x.xx
Usage: nginx [-?hvVt] [-s signal] [-c filename] [-p prefix] [-g directives]

Options:
  -?,-h         : this help
  -v            : show version and exit
  -V            : show version and configure options then exit
  -t            : test configuration and exit
  -s signal     : send signal to a master process: stop, quit, reopen, reload
  -p prefix     : set prefix path (default: /usr/local/nginx/)
  -c filename   : set configuration file (default: /etc/nginx/nginx.conf)
  -g directives : set global directives out of configuration file
Cool, I'm going to give it a try. I want to use it as a proxy to redirect local host to another ip address on my local network. Skimming some scripts here it looks like it might be possible:
https://gist.github.com/soheilhy/8b94347ff8336d971ad0

The reason I want to do this is that I want the links to a page on freenet to look the same whether I'm running it locally or connecting to it from a remote computer.

and some unrelead links for my reference later:
https://www.nginx.com/resources/wiki/
https://en.wikipedia.org/wiki/Nginx
http://puppylinux.org/wikka/Nginx

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#7 Post by s243a »

s243a wrote:
Semme wrote:Which pup Tatyana? Via PPM, the pkg+deps are available for both Slacko and Tahr..

Code: Select all

sh-4.1# nginx -h
nginx version: nginx/1.x.xx
Usage: nginx [-?hvVt] [-s signal] [-c filename] [-p prefix] [-g directives]

Options:
  -?,-h         : this help
  -v            : show version and exit
  -V            : show version and configure options then exit
  -t            : test configuration and exit
  -s signal     : send signal to a master process: stop, quit, reopen, reload
  -p prefix     : set prefix path (default: /usr/local/nginx/)
  -c filename   : set configuration file (default: /etc/nginx/nginx.conf)
  -g directives : set global directives out of configuration file
Cool, I'm going to give it a try. I want to use it as a proxy to redirect local host to another ip address on my local network. Skimming some scripts here it looks like it might be possible:
https://gist.github.com/soheilhy/8b94347ff8336d971ad0

The reason I want to do this is that I want the links to a page on freenet to look the same whether I'm running it locally or connecting to it from a remote computer.

and some unrelead links for my reference later:
https://www.nginx.com/resources/wiki/
https://en.wikipedia.org/wiki/Nginx
http://puppylinux.org/wikka/Nginx

It worked.

I installed the files from the puppy package manager
I coppied the config file from the link at:
https://gist.github.com/soheilhy/8b94347ff8336d971ad0

I modified the line which says proxy pas in the config file in the server section

Code: Select all

    server {
        listen       8888;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            proxy_pass http://192.168.1.67:8888/;
        }
and moved the configuration file so that it had the following path.

/etc/nginx/nginx.conf

Run the server by
/usr/sbin/nginx

and if you need to reload the configuration file type

/usr/sbin/nginx -s reload.

Code: Select all

    server {
        listen       8888;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            proxy_pass http://192.168.1.67:8888/;
        }

PS. there was one other modification I needed to make. On the first line of the configuration where it says

Code: Select all

#user  nobody;
change it to:

Code: Select all

user  nobody;
Which is simply removing the comment mark so that the statement is executed.

Post Reply