[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
howtos:hardware:arm:nginx [2020/03/02 19:52 (UTC)] – [Adding additional sites to nginx] additional text exaga | howtos:hardware:arm:nginx [2020/03/05 10:56 (UTC)] – [Adding additional sites to nginx] updated .conf code exaga | ||
---|---|---|---|
Line 10: | Line 10: | ||
==== Notes ==== | ==== Notes ==== | ||
- | This page will hopefully allow you how run nginx on Slackware ARM successfully, | + | This page will hopefully allow you how run nginx on Slackware ARM successfully, |
- | Slackware ARM -current was running [kernel 5.4.21] on a Raspberry Pi 4 and used to build the package, install and configure nginx. Any ARM device running Slackware may be used for this purpose. The -current (development) version was chosen as it includes the latest software, etc. | + | Slackware ARM -current was running [kernel 5.4.22] on a Raspberry Pi 4 and used to build the package, install and configure nginx. Any ARM device running Slackware may be used for this purpose. The -current (development) version was chosen as it includes the latest software, etc. |
==== Requirements ==== | ==== Requirements ==== | ||
Line 43: | Line 43: | ||
</ | </ | ||
- | You also need to download the latest [[http:// | + | You also need to download the latest [[http:// |
< | < | ||
- | ~# wget http:// | + | ~# wget http:// |
</ | </ | ||
Line 61: | Line 61: | ||
</ | </ | ||
- | ... and change it to the version of nginx you have downloaded. For ' | + | ... and change it to the version of nginx you have downloaded. For ' |
< | < | ||
- | VERSION=${VERSION: | + | VERSION=${VERSION: |
</ | </ | ||
Line 81: | Line 81: | ||
< | < | ||
~# time ./ | ~# time ./ | ||
+ | </ | ||
+ | |||
+ | Alternatively, | ||
+ | |||
+ | < | ||
+ | ~# time GEOIP=yes ./ | ||
</ | </ | ||
After a few short minutes, you should see the resulting package in your '/ | After a few short minutes, you should see the resulting package in your '/ | ||
+ | |||
+ | < | ||
+ | A. We like to know how long the process takes. That's all. You don't have to include it in order to be successful.</ | ||
< | < | ||
~# cd /tmp | ~# cd /tmp | ||
~# ls -lah *.txz | ~# ls -lah *.txz | ||
- | -rw-r--r-- 1 root root 442K Feb 26 06:01 nginx-1.17.8-arm-1_SBo.txz | + | -rw-r--r-- 1 root root 442K Feb 26 06:01 nginx-1.17.9-arm-1_SBo.txz |
</ | </ | ||
Line 114: | Line 123: | ||
< | < | ||
- | ~# installpkg nginx-1.17.8-arm-1_SBo.txz | + | ~# installpkg nginx-1.17.9-arm-1_SBo.txz |
</ | </ | ||
Line 205: | Line 214: | ||
server { | server { | ||
listen | listen | ||
- | server_name | + | server_name |
location / { | location / { | ||
Line 264: | Line 273: | ||
</ | </ | ||
+ | By default ' | ||
+ | < | ||
+ | ; Redirect worker stdout and stderr into main error log. If not set, stdout and | ||
+ | ; stderr will be redirected to /dev/null according to FastCGI specs. | ||
+ | ; Note: on highloaded environement, | ||
+ | ; process time (several ms). | ||
+ | ; Default Value: no | ||
+ | catch_workers_output = yes | ||
+ | </ | ||
Save and exit the file. | Save and exit the file. | ||
Line 432: | Line 450: | ||
</ | </ | ||
- | In this file we need to instruct ' | + | In this file we need to instruct ' |
< | < | ||
Line 441: | Line 459: | ||
# this root path is to the webdir | # this root path is to the webdir | ||
root / | root / | ||
+ | | ||
+ | # index pages to load in this order | ||
+ | index index.php index.html index.htm; | ||
#This will be needed for GoAccess ** make sure vcombined map is defined in nginx.conf | #This will be needed for GoAccess ** make sure vcombined map is defined in nginx.conf | ||
access_log / | access_log / | ||
+ | |||
+ | # pass the PHP scripts to FastCGI server listening on 127.0.0.1: | ||
+ | # | ||
+ | location ~ \.php$ { | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
} | } | ||
Line 459: | Line 490: | ||
# this root path is to the webdir | # this root path is to the webdir | ||
root / | root / | ||
+ | |||
+ | # index pages to load in this order | ||
+ | index index.php index.html index.htm; | ||
#This will be needed for GoAccess ** make sure vcombined map is defined in nginx.conf | #This will be needed for GoAccess ** make sure vcombined map is defined in nginx.conf | ||
access_log / | access_log / | ||
+ | |||
+ | # pass the PHP scripts to FastCGI server listening on 127.0.0.1: | ||
+ | # | ||
+ | location ~ \.php$ { | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
} | } | ||
Line 481: | Line 525: | ||
< | < | ||
- | ~# echo '< | + | ~# echo '< |
- | ~# echo '< | + | ~# echo '< |
</ | </ | ||
Line 509: | Line 553: | ||
# Software used in this guide: \\ | # Software used in this guide: \\ | ||
[[http:// | [[http:// | ||
- | [[https:// | + | [[https:// |
[[https:// | [[https:// | ||
[[https:// | [[https:// |