]> lifelog.hopto.org Git - LifeLog.git/commitdiff
additions.
authorWill Budic <redacted>
Tue, 2 May 2023 14:09:36 +0000 (00:09 +1000)
committerWill Budic <redacted>
Tue, 2 May 2023 14:09:36 +0000 (00:09 +1000)
Installation_LightHTTPD.txt

index 6bb4e64fcc45cafe8069179220f1bc239b63b83c..058e44383336b8405c38c2f3ea44194e38f01278 100644 (file)
@@ -6,12 +6,12 @@ sudo apt install lighttpd
 cd ~/dev/lighttpd-1.4.54
 tar xvzf lighttpd-1.4.54.tar.gz
 sudo apt autoremove -y
-sudo apt-get install intltool -y
-sudo apt-get install pcre-config -y
-sudo apt-get install build-essential -y
-sudo apt-get install libssl-dev -y
-sudo apt-get install libpcre3-dev -y
-sudo apt-get install libbz2-dev -y
+sudo apt install intltool -y
+sudo apt install pcre-config -y
+sudo apt install build-essential -y
+sudo apt install libssl-dev -y
+sudo apt install libpcre3-dev -y
+sudo apt install libbz2-dev -y
 sudo apt install libssl-dev -y
 
 ./configure --prefix=/usr/local/lighttpd --with-openssl --with-sqlite --with-pgsql
@@ -28,8 +28,15 @@ openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \
   -keyout elite.key -out elite.crt -subj "/CN=elite.net" \
   -addext "subjectAltName=DNS:elite.net,DNS:www.elite.net,IP:192.168.1.45"
 
+openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \
+  -keyout elite.key -out xip.crt -subj "/CN=104-225-141-231.cloud-xip.com" \
+  -addext "subjectAltName=DNS:104-225-141-231.cloud-xip.com,IP:104.225.141.231"
+
+
 cat elite.key elite.crt > elite.net.pem
 
+cat xip.key xip.crt > xip.com.pem
+
 ## Setup virtual Host with SSL
 
 To set up Virtual Host with SSL, edit lighttpd config file /etc/lighttpd/lighttpd.conf with the following values.