-
serving static website using nginx :
https://medium.com/@jgefroh/a-guide-to-using-nginx-for-static-websites-d96a9d034940 -
troubleshooting nginx error : "nginx.service: Control process exited, code=exited status=1: "
- $ sudo service apache2 stop
- $ sudo apt-get remove --purge nginx nginx-full nginx-common
- $ sudo apt-get install nginx
- the commands above have also been used in updateServerFiles.sh
- $ sudo service apache2 stop
-
use the server block below instead of one in the medium article in /etc/nginx/sites-available/simpleWebsite.com :
server {
listen 120;
listen [::]:120;
root /var/www/simpleWebsite.com;
index index.html;
server_name simpleWebsite.com www.simpleWebsite.com;
location / {
try_files $uri $uri/ =404;
}
}