Infra Insert 09: Difference between revisions

This page was last edited on 1 February 2024, at 14:49.
(Created page with "<!------------------------> <!-- do not remove this --> <div id="infra##" class="infra-insert"> <!------------------------> '''Nginx Install Instructions''' Make sure you have installed Nginx. '''$ apt install nginx ''' Note: packages are saved by default in your user's home directory. If you went to the IP address of your pi in a web browser on a device that was on the same wi-fi network as the pi you should be able to see the default Nginx site already. Nginx au...")
 
No edit summary
Line 3: Line 3:
<div id="infra##" class="infra-insert">
<div id="infra##" class="infra-insert">
<!------------------------>
<!------------------------>
 
The default configuration file for this simple static site can be found here:</br>
'''Nginx Install Instructions'''
 
Make sure you have installed Nginx.
 
'''$ apt install nginx
'''
 
Note: packages are saved by default in your user's home directory.
 
If you went to the IP address of your pi in a web browser on a device that was on the same wi-fi network as the pi you should be able to see the default Nginx site already.
 
Nginx automatically creates default HTML files on the installation. To find that HTML index page in your file system on the pi, change directory:
 
'''$ cd /var/www/html
'''
 
The default HTML document will be named ''"index.nginx-debian.html"'' which you can see if you run the ls command now.
 
The default configuration file for this simple static site can be found here:
 
'''$ cd /etc/nginx/sites-enabled
'''$ cd /etc/nginx/sites-enabled
'''
'''
''Fragment form Servpub Docs [see page 2]''
''Fragment form Servpub Docs [see page 2]''



Revision as of 14:49, 1 February 2024

The default configuration file for this simple static site can be found here:
$ cd /etc/nginx/sites-enabled Fragment form Servpub Docs [see page 2]