[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.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:hardware:arm:nginx [2020/03/05 10:21 (UTC)] – [Adding additional sites to nginx] updated .conf code exagahowtos:hardware:arm:nginx [2020/03/05 12:03 (UTC)] (current) – [Configuring nginx to run on Slackware ARM] added code 'default_server;' exaga
Line 213: Line 213:
  
     server {     server {
-        listen       80;+        listen       80 default_server;
         server_name  127.0.0.1 localhost;         server_name  127.0.0.1 localhost;
  
Line 430: Line 430:
 </code> </code>
  
-Bercause we want to use 'test.local' and 'extra.local' as domain [server_name] names we will add the following to our '/etc/hosts' file:+Because we want to use 'test.local' and 'extra.local' as domain name [server_name] aliases we will add the following to our '/etc/hosts' file:
  
 <code> <code>
Line 442: Line 442:
 </code> </code>
  
-The above settings will take effect as soon as the file is saved. However, there's nothing to "seeyet because we haven'cteated it! :-)+The above settings will take effect as soon as the file is saved. However, there's nothing there to see yet because we haven'created it! :-)
  
 So, then we create and edit the 'test.local.conf' file: So, then we create and edit the 'test.local.conf' file:
Line 459: Line 459:
     # this root path is to the webdir     # this root path is to the webdir
     root /var/www/test.local;     root /var/www/test.local;
 +    
 +    # 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
Line 487: Line 490:
     # this root path is to the webdir     # this root path is to the webdir
     root /var/www/extra.local;     root /var/www/extra.local;
 +
 +    # 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
Line 523: Line 529:
 </code> </code>
  
-When all that's complete, the final task is to test the 'nginx' confiruation and restart the daemon.+When all that's complete, the final task is to test the 'nginx' configuration and restart the daemon.
  
 <code> <code>
 howtos:hardware:arm:nginx ()