User Tools

Site Tools


webapps:hugo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
webapps:hugo [2023/10/03 17:41] – [Hugo Server] lucidwebapps:hugo [2023/10/03 17:50] (current) – [Configure Nginx] lucid
Line 67: Line 67:
     listen 80;     listen 80;
     server_name subdomain.domain.tld;     server_name subdomain.domain.tld;
-    root /var/www/html+    root /var/www/html;
 } }
 </code> </code>
Line 77: Line 77:
     listen 80;     listen 80;
     server_name 192.168.1.4;     server_name 192.168.1.4;
-    root /var/www/html+    root /var/www/html;
 } }
 </code> </code>
Line 87: Line 87:
 Add a file to the web root to make sure that everything works in your web browser before moving the actual website to the server. Add a file to the web root to make sure that everything works in your web browser before moving the actual website to the server.
  
-  sudo touch /var/www/html/index.html && echo "Hello World!" >/var/www/html/index.html+  sudo touch /var/www/html/index.html && echo "Hello World!"/dev/null | sudo tee -a /var/www/html/index.html
   sudo chown -R www-data:www-data /var/www/html   sudo chown -R www-data:www-data /var/www/html
  
webapps/hugo.1696354878.txt.gz · Last modified: 2023/10/03 17:41 by lucid