diff options
Diffstat (limited to 'usr/local/etc/nginx')
| -rw-r--r-- | usr/local/etc/nginx/nginx.conf | 31 | 
1 files changed, 31 insertions, 0 deletions
diff --git a/usr/local/etc/nginx/nginx.conf b/usr/local/etc/nginx/nginx.conf index 3c48000..3febbf9 100644 --- a/usr/local/etc/nginx/nginx.conf +++ b/usr/local/etc/nginx/nginx.conf @@ -89,6 +89,27 @@ http {  	ssl_certificate /usr/local/etc/letsencrypt/live/gitjoe.xyz/fullchain.pem;  	ssl_certificate_key /usr/local/etc/letsencrypt/live/gitjoe.xyz/privkey.pem;  }  +	server{ +		server_name  watchoom.gitjoe.xyz; +		root   /usr/local/www/watchoom; +		index  index.html; +		expires $expires; + +		location / { +			try_files $uri $uri/ =404; +		}  +		location ~ /\.ht { +			deny all; +		} +		error_page   500 502 503 504  /50x.html; +		location = /50x.html { +			root   /usr/local/www/nginx-dist; +		} +	 +	listen 443 ssl; +	ssl_certificate /usr/local/etc/letsencrypt/live/gitjoe.xyz/fullchain.pem; +	ssl_certificate_key /usr/local/etc/letsencrypt/live/gitjoe.xyz/privkey.pem; +}  	server {  		server_name fossil.jozanofastora.xyz; @@ -138,6 +159,16 @@ server{  	return 404;  } +server{ +	if ($host = watchoom.gitjoe.xyz) { +		return 301 https://$host$request_uri; +	} + +	server_name  watchoom.gitjoe.xyz; +	listen 80; +	return 404; +} +  #server {  #	if ($host = fossil.jozanofastora.xyz) {  #		return 301 https://$host$request_uri;  | 
