Webservers: Difference between revisions

From Sea of Fate
Jump to navigationJump to search
No edit summary
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Introduction==
==Introduction==


==temporary notes==
There will be several Webservers in the '''[[Home Lab]]'''. Each will be on it's own '''[[Virtual Machines]]''' and will be on the production VLAN. The MySQL databases will be on a separate VM on the same network so no connectivity problems from that. The Proxy server will forward all web traffic to the appropriate webserver. There are a few helpful scripts that can help with '''[[Webserver Setup | Webserver Setup Scripts]]'''


new webserver plum 192.168.100.20 enp6s18 using strawberry as a sftp server
==[[SSL Config]]==
 
There will be two setups for SSL/TLS one for the seaoffate.local and one for seaoffate.net. More details can be found '''[[SSL Config | here]]'''


== webservers Purposes ==
== webservers Purposes ==
Line 11: Line 13:
===Logan (Wiki)===
===Logan (Wiki)===


logan has been setup as a webserver to have the wiki website. It' IP is prod.12 It can be accessed by logan.seaoffate.local, wiki.seaoffate.local or wiki.seaoffate.net
logan has been setup as a webserver to have the wiki website. It's IP is 192.168.100.12 It can be accessed by logan.seaoffate.local, wiki.seaoffate.local or wiki.seaoffate.net. '''Lodan has now been retired and wikimedia has moved to Plum'''


===Lime (default)===
===[[Lime]] Default or www===


The default website is hosted on lime. The IP is prod.10. It can be accessed by lime.seaoffate.local, www.seaoffate.local or www.seaoffate.local.
The default website is hosted on lime. The IP is 192.168.100.10. It can be accessed by lime.seaoffate.local, www.seaoffate.local, seaoffate.net or www.seaoffate.net. The application that is running the main website is Joomla.


===Fig (files)===
===Fig (files)===


not setup yet ip will is prod.11  
There is a change of plan and Fig is now hosting a Nextcloud server on prod.11. Not much to say really the install was simply a matter of downloading the installer, create a Database and start the installer going. The prompts were quite self explanatory. The only thing that is notable is that there is now a 1.7 TB hard drive added to store any and all files uploaded here.
 
===[[Bookstack]]===
 
Bookstack has been installed on Plum as an alternative note book to Wikimedia. The DNS name for bookstack is https://notes.seaoffate.net


===[[Plum (Photo)]]===
===[[Plum (Photo)]]===


This one is to host the photo website, probably Piwigo. It can be accessed at plum.seaoffate.local, photo.seaoffate.local or plum.seaoffate.net. The Ip will be Prod.20. The setup here is to have a normal HD for the webserver but a NFS share for the base photos with only RO access. The actual directory where the photos are shared from will be another VM called strawberry (IP prod.21).
This one is to host the photo website, probably Piwigo. It can be accessed at plum.seaoffate.local, photo.seaoffate.local or plum.seaoffate.net. The Ip will be 192.168.100.22. The setup here is to have a normal HD for the webserver and a large separate HD for the photos. We may  VM called strawberry (IP prod.23).
 


== Website log files and locations ==
== Website log files and locations ==
Line 59: Line 64:
===Nginx Log Files===
===Nginx Log Files===


DocumentRoot /var/www/files.seaoffate.local/public_html
DocumentRoot /var/www/files.seaoffate.local/public_html
DocumentRoot /var/www/files.seaoffate.local/public_html
DocumentRoot /var/www/files.seaoffate.local/public_html
DocumentRoot /var/www/files.seaoffate.local/public_html
DocumentRoot /var/www/files.seaoffate.local/public_html

Latest revision as of 03:16, 28 February 2026

Introduction

There will be several Webservers in the Home Lab. Each will be on it's own Virtual Machines and will be on the production VLAN. The MySQL databases will be on a separate VM on the same network so no connectivity problems from that. The Proxy server will forward all web traffic to the appropriate webserver. There are a few helpful scripts that can help with Webserver Setup Scripts

SSL Config

There will be two setups for SSL/TLS one for the seaoffate.local and one for seaoffate.net. More details can be found here

webservers Purposes

four webservers with the primary job of serving websites have been defined.

Logan (Wiki)

logan has been setup as a webserver to have the wiki website. It's IP is 192.168.100.12 It can be accessed by logan.seaoffate.local, wiki.seaoffate.local or wiki.seaoffate.net. Lodan has now been retired and wikimedia has moved to Plum

Lime Default or www

The default website is hosted on lime. The IP is 192.168.100.10. It can be accessed by lime.seaoffate.local, www.seaoffate.local, seaoffate.net or www.seaoffate.net. The application that is running the main website is Joomla.

Fig (files)

There is a change of plan and Fig is now hosting a Nextcloud server on prod.11. Not much to say really the install was simply a matter of downloading the installer, create a Database and start the installer going. The prompts were quite self explanatory. The only thing that is notable is that there is now a 1.7 TB hard drive added to store any and all files uploaded here.

Bookstack

Bookstack has been installed on Plum as an alternative note book to Wikimedia. The DNS name for bookstack is https://notes.seaoffate.net

Plum (Photo)

This one is to host the photo website, probably Piwigo. It can be accessed at plum.seaoffate.local, photo.seaoffate.local or plum.seaoffate.net. The Ip will be 192.168.100.22. The setup here is to have a normal HD for the webserver and a large separate HD for the photos. We may VM called strawberry (IP prod.23).

Website log files and locations

The Docroots are

/var/www/wiki.seaoffate.local/public_html

and

/var/www/seaoffate.local/public_html

and

/var/www/files.seaoffate.local/public_html

The access logs are seperate for each config

www.seaoffate on Lime

For the .net they are

/var/log/apache2/www.seaoffate.net-error.log
/var/log/apache2/www.seaoffate.net-access.log

and the local are

/var/log/apache2/lime.seaoffate.local-error.log
/var/log/apache2/lime.seaoffate.local-access.log

wiki.seaoffate on Logan

For the .net they are

/var/log/apache2/wiki.seaoffate.net-error.log
/var/log/apache2/wiki.seaoffate.net-access.log

and the .local are

/var/log/apache2/wiki.seaoffate.local-error.log
/var/log/apache2/wiki.seaoffate.local-access.log
/var/log/apache2/logan.seaoffate.local-error.log
/var/log/apache2/logan.seaoffate.local-access.log

Nginx Log Files

DocumentRoot /var/www/files.seaoffate.local/public_html
DocumentRoot /var/www/files.seaoffate.local/public_html
DocumentRoot /var/www/files.seaoffate.local/public_html