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.
nginx webserver
nginx 1.0.14.pet
i am posting a nginx 1.0.14.pet, compiled in slacko. works great.
Re: nginx webserver
How to download?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.
Re: nginx 1.0.14.pet
How to download?nicomate wrote:i am posting a nginx 1.0.14.pet, compiled in slacko. works great.
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: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
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 wrote: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: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
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/;
}
/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;
Code: Select all
user nobody;