Rename default.conf to avoid override
This commit is contained in:
		@@ -9,7 +9,7 @@ These are my NGINX configurations. They are written for `nginx-core` with `nginx
 | 
			
		||||
1. On Fedora, install `nginx-core`, `nginx-mod-stream`, `certbot` and `policycoreutils-python-utils`. On RHEL, install `nginx` from the mainline repository, `certbot`, and `python3-certbot-nginx`. Makesure `rsync` is available on the OS.
 | 
			
		||||
2. On Fedora, comment out the default server block in `/etc/nginx/nginx.conf`. On RHEL, move `/etc/nginx/conf.d/default.conf` to `/etc/nginx/conf.d/default.conf.bk`
 | 
			
		||||
3. Run `setup.sh`
 | 
			
		||||
4. Generate a certificate with your hostname with the `certbot/default-quic` example. Copy `etc/nginx/conf.d/sites_default_quic.conf` to the corresponding directory on your server and edit it approprieately.
 | 
			
		||||
4. Generate a certificate with your hostname with the `certbot/default-quic` example. Copy `etc/nginx/conf.d/default-quic.conf` to the corresponding directory on your server and edit it approprieately.
 | 
			
		||||
5. Generate certificates with the example in the certbot directory.
 | 
			
		||||
6. Make your actual vhost config based on the `sites_.*` samples in `/etc/nginx/conf.d`.
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								setup.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								setup.sh
									
									
									
									
									
								
							@@ -118,7 +118,7 @@ sudo systemctl enable --now nginx-rotate-session-ticket-keys.timer
 | 
			
		||||
 | 
			
		||||
unpriv curl -s https://raw.githubusercontent.com/TommyTran732/NGINX-Configs/main/etc/nginx/conf.d/http2.conf | sudo tee /etc/nginx/conf.d/http2.conf > /dev/null
 | 
			
		||||
unpriv curl -s https://raw.githubusercontent.com/TommyTran732/NGINX-Configs/main/etc/nginx/conf.d/server_tokens.conf | sudo tee /etc/nginx/conf.d/server_tokens.conf > /dev/null
 | 
			
		||||
unpriv curl -s https://raw.githubusercontent.com/TommyTran732/NGINX-Configs/main/etc/nginx/conf.d/sites_default.conf | sudo tee /etc/nginx/conf.d/sites_default.conf > /dev/null
 | 
			
		||||
unpriv curl -s https://raw.githubusercontent.com/TommyTran732/NGINX-Configs/main/etc/nginx/conf.d/default.conf | sudo tee /etc/nginx/conf.d/default.conf > /dev/null
 | 
			
		||||
unpriv curl -s https://raw.githubusercontent.com/TommyTran732/NGINX-Configs/main/etc/nginx/conf.d/tls.conf | sudo tee /etc/nginx/conf.d/tls.conf > /dev/null
 | 
			
		||||
 | 
			
		||||
sudo mkdir -p /etc/nginx/snippets
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user