Skip to content

Commit 1c749d3

Browse files
committed
Added logo & updated README.md
1 parent 8b9c9a4 commit 1c749d3

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

README.md

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,46 @@
1-
# Nginx-Example
1+
# Nginx-Example
2+
3+
A tutorial for hosting static websites with Ubuntu & Nginx.
4+
5+
[![Static Website Hosting with Nginx](logo.png)](https://www.youtube.com/watch?v=OHMWGj6D01U)
6+
7+
## Installing/Uninstalling Nginx
8+
9+
To install Nginx type the following command into your terminal:
10+
sudo apt install nginx
11+
12+
To remove Nginx type the following command into your terminal:
13+
sudo apt remove nginx
14+
15+
## Directories
16+
17+
Website Root Directory:
18+
/var/www
19+
20+
Server Configuration File Directory:
21+
/etc/nginx/sites-enabled
22+
23+
TLS/SSL Certificate & Key Directory:
24+
/etc/nginx/ssl
25+
26+
## Administrative Commands
27+
28+
Starting the Server:
29+
sudo service nginx start
30+
31+
Stopping the Server:
32+
sudo service nginx stop
33+
34+
Restarting the Server:
35+
sudo service nginx restart
36+
37+
Checking the Server Status:
38+
sudo service nginx status
39+
40+
## Certificate & Key Generation Commands
41+
42+
Generate Certificate & Private Key:
43+
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout domainName.key -out domainName.crt
44+
45+
Generate PEM File Certificate (For Secure Email Messaging):
46+
sudo openssl dhparam -out dhparam.pem 2048

logo.png

21.1 KB
Loading

0 commit comments

Comments
 (0)