Infra Insert 09: Difference between revisions

This page was last edited on 1 February 2024, at 22:24.
(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
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!------------------------>
<!------------------------>
<!-- do not remove this -->
<!-- do not remove this -->
<div id="infra##" class="infra-insert">
<div id="Infra Insert 09" class="infra-insert">
<!------------------------>
<!------------------------>
 
'''$ cd /etc/nginx/sites-enabled'''
'''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
'''
 
''Fragment form Servpub Docs [see page 2]''
 
<!------------------------>
<!------------------------>
<!-- do not remove this -->
<!-- do not remove this -->

Latest revision as of 22:24, 1 February 2024

$ cd /etc/nginx/sites-enabled