Skip to content

Instantly share code, notes, and snippets.

@paolodina
Forked from minostro/gist:11387989
Created January 5, 2017 11:24
Show Gist options
  • Select an option

  • Save paolodina/59ef468cda1f46882ec5113ed7b0b283 to your computer and use it in GitHub Desktop.

Select an option

Save paolodina/59ef468cda1f46882ec5113ed7b0b283 to your computer and use it in GitHub Desktop.

Revisions

  1. @minostro minostro revised this gist Apr 29, 2014. 1 changed file with 13 additions and 13 deletions.
    26 changes: 13 additions & 13 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    1.- Get into the src folder, download & extract nginx source

    `cd ~/src`
    `curl -O http://nginx.org/download/nginx-1.7.0.tar.gz`
    `tar -xzvf nginx-1.7.0.tar.gz`
    `cd nginx-1.7.0`
    * `cd ~/src`
    * `curl -O http://nginx.org/download/nginx-1.7.0.tar.gz`
    * `tar -xzvf nginx-1.7.0.tar.gz`
    * `cd nginx-1.7.0`

    2.- Configuring the source

    @@ -28,26 +28,26 @@

    4.- Creating folders

    `mkdir -p ~/tmp/nginx/fcgi ~/tmp/nginx/proxy ~/tmp/nginx/client`
    * `mkdir -p ~/tmp/nginx/fcgi ~/tmp/nginx/proxy ~/tmp/nginx/client`

    5.- Modifying the Path

    `export PATH=/home/axion/local/sbin:$PATH`
    `source ~/.bashrc`
    * `export PATH=/home/axion/local/sbin:$PATH`
    * `source ~/.bashrc`

    6.- Create a custom app on Webfaction

    7.- The configuration file

    `mv ~/local/etc/nginx.conf ~/local/etc/nginx.conf.backup`
    * `mv ~/local/etc/nginx.conf ~/local/etc/nginx.conf.backup`

    8.- Edit the configuration file as needed & check it

    `nginx -t`
    * `nginx -t`

    9.- Start, Stopping & Reloading

    `nginx`
    `nginx -s stop`
    `nginx -s reload`
    `nginx -t`
    * `nginx`
    * `nginx -s stop`
    * `nginx -s reload`
    * `nginx -t`
  2. @minostro minostro revised this gist Apr 29, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -23,8 +23,8 @@

    3.- Compile & Install

    `make`
    `make install`
    * `make`
    * `make install`

    4.- Creating folders

  3. @minostro minostro revised this gist Apr 29, 2014. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -38,12 +38,15 @@
    6.- Create a custom app on Webfaction

    7.- The configuration file

    `mv ~/local/etc/nginx.conf ~/local/etc/nginx.conf.backup`

    8.- Edit the configuration file as needed & check it

    `nginx -t`

    9.- Start, Stopping & Reloading

    `nginx`
    `nginx -s stop`
    `nginx -s reload`
  4. @minostro minostro revised this gist Apr 29, 2014. 1 changed file with 36 additions and 22 deletions.
    58 changes: 36 additions & 22 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,36 +1,50 @@
    1.- Get into the src folder, download & extract nginx source

    cd ~/src
    curl -O http://nginx.org/download/nginx-1.7.0.tar.gz
    tar -xzvf nginx-1.7.0.tar.gz
    cd nginx-1.7.0
    `cd ~/src`
    `curl -O http://nginx.org/download/nginx-1.7.0.tar.gz`
    `tar -xzvf nginx-1.7.0.tar.gz`
    `cd nginx-1.7.0`

    2.- Configuring the source

    ./configure --prefix=$HOME/local/nginx \
    --sbin-path=$HOME/local/sbin/nginx \
    --conf-path=$HOME/local/etc/nginx.conf \
    --error-log-path=$HOME/logs/user/nginx/error.log \
    --http-log-path=$HOME/logs/user/nginx/access.log \
    --pid-path=$HOME/local/run/nginx/nginx.pid \
    --lock-path=$HOME/local/lock/nginx.lock \
    --http-client-body-temp-path=$HOME/tmp/nginx/client/ \
    --http-proxy-temp-path=$HOME/tmp/nginx/proxy/ \
    --http-fastcgi-temp-path=$HOME/tmp/nginx/fcgi/ \
    --with-http_flv_module \
    --with-http_ssl_module \
    --with-http_gzip_static_module
    ./configure --prefix=$HOME/local/nginx \
    --sbin-path=$HOME/local/sbin/nginx \
    --conf-path=$HOME/local/etc/nginx.conf \
    --error-log-path=$HOME/logs/user/nginx/error.log \
    --http-log-path=$HOME/logs/user/nginx/access.log \
    --pid-path=$HOME/local/run/nginx/nginx.pid \
    --lock-path=$HOME/local/lock/nginx.lock \
    --http-client-body-temp-path=$HOME/tmp/nginx/client/ \
    --http-proxy-temp-path=$HOME/tmp/nginx/proxy/ \
    --http-fastcgi-temp-path=$HOME/tmp/nginx/fcgi/ \
    --with-http_flv_module \
    --with-http_ssl_module \
    --with-http_gzip_static_module

    3.- Compile & Install

    make
    make install
    `make`
    `make install`

    4.- Creating folders

    mkdir -p ~/tmp/nginx/fcgi ~/tmp/nginx/proxy ~/tmp/nginx/client
    `mkdir -p ~/tmp/nginx/fcgi ~/tmp/nginx/proxy ~/tmp/nginx/client`

    5.- Modifying the Path

    export PATH=/home/axion/local/sbin:$PATH
    source ~/.bashrc
    `export PATH=/home/axion/local/sbin:$PATH`
    `source ~/.bashrc`

    6.- Create a custom app on Webfaction

    7.- The configuration file
    `mv ~/local/etc/nginx.conf ~/local/etc/nginx.conf.backup`

    8.- Edit the configuration file as needed & check it
    `nginx -t`

    9.- Start, Stopping & Reloading
    `nginx`
    `nginx -s stop`
    `nginx -s reload`
    `nginx -t`
  5. @minostro minostro revised this gist Apr 29, 2014. 1 changed file with 36 additions and 5 deletions.
    41 changes: 36 additions & 5 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,36 @@
    1.-get into the src folder, download & extract nginx source
    `cd ~/src
    curl -O http://nginx.org/download/nginx-1.2.1.tar.gz
    tar -xzvf nginx-1.2.1.tar.gz
    cd nginx-1.2.1`
    1.- Get into the src folder, download & extract nginx source

    cd ~/src
    curl -O http://nginx.org/download/nginx-1.7.0.tar.gz
    tar -xzvf nginx-1.7.0.tar.gz
    cd nginx-1.7.0

    2.- Configuring the source

    ./configure --prefix=$HOME/local/nginx \
    --sbin-path=$HOME/local/sbin/nginx \
    --conf-path=$HOME/local/etc/nginx.conf \
    --error-log-path=$HOME/logs/user/nginx/error.log \
    --http-log-path=$HOME/logs/user/nginx/access.log \
    --pid-path=$HOME/local/run/nginx/nginx.pid \
    --lock-path=$HOME/local/lock/nginx.lock \
    --http-client-body-temp-path=$HOME/tmp/nginx/client/ \
    --http-proxy-temp-path=$HOME/tmp/nginx/proxy/ \
    --http-fastcgi-temp-path=$HOME/tmp/nginx/fcgi/ \
    --with-http_flv_module \
    --with-http_ssl_module \
    --with-http_gzip_static_module

    3.- Compile & Install

    make
    make install

    4.- Creating folders

    mkdir -p ~/tmp/nginx/fcgi ~/tmp/nginx/proxy ~/tmp/nginx/client

    5.- Modifying the Path

    export PATH=/home/axion/local/sbin:$PATH
    source ~/.bashrc
  6. @minostro minostro revised this gist Apr 29, 2014. No changes.
  7. @minostro minostro revised this gist Apr 29, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # get into the src folder, download & extract nginx source
    cd ~/src
    1.-get into the src folder, download & extract nginx source
    `cd ~/src
    curl -O http://nginx.org/download/nginx-1.2.1.tar.gz
    tar -xzvf nginx-1.2.1.tar.gz
    cd nginx-1.2.1
    cd nginx-1.2.1`
  8. @minostro minostro created this gist Apr 29, 2014.
    5 changes: 5 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # get into the src folder, download & extract nginx source
    cd ~/src
    curl -O http://nginx.org/download/nginx-1.2.1.tar.gz
    tar -xzvf nginx-1.2.1.tar.gz
    cd nginx-1.2.1