webapps:hugo
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| webapps:hugo [2023/10/03 17:25] – [Copying your Website to the Web Server] lucid | webapps:hugo [2023/10/03 17:50] (current) – [Configure Nginx] lucid | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| Dependencies | Dependencies | ||
| - | sudo apt install git nginx golang | + | sudo apt install git golang |
| Line 67: | Line 67: | ||
| listen 80; | listen 80; | ||
| server_name subdomain.domain.tld; | server_name subdomain.domain.tld; | ||
| - | root / | + | root / |
| } | } | ||
| </ | </ | ||
| Line 77: | Line 77: | ||
| listen 80; | listen 80; | ||
| server_name 192.168.1.4; | server_name 192.168.1.4; | ||
| - | root / | + | root / |
| } | } | ||
| </ | </ | ||
| 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 / | + | sudo touch / |
| sudo chown -R www-data: | sudo chown -R www-data: | ||
| Line 123: | Line 123: | ||
| sudo systemctl restart nginx | sudo systemctl restart nginx | ||
| | | ||
| - | If everything went as expected, your hugo website should be available at the IP | + | If everything went as expected, your hugo website should be available at your domain or IP, albeit without encryption. |
webapps/hugo.1696353913.txt.gz · Last modified: 2023/10/03 17:25 by lucid