public:computers:vps_tips_tricks
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
public:computers:vps_tips_tricks [06/03/25 19:22 GMT] – [.htaccess method] john | public:computers:vps_tips_tricks [06/04/25 07:32 BST] (current) – [Access via FastHosts] john | ||
---|---|---|---|
Line 10: | Line 10: | ||
* SSL Certificate replaced to enable HTTPS | * SSL Certificate replaced to enable HTTPS | ||
</ | </ | ||
+ | |||
+ | ===== New VPS : March 2025 ===== | ||
+ | |||
+ | * New VPS 1 obtained at Fasthosts | ||
+ | |||
+ | < | ||
+ | Type: | ||
+ | Size:vps 1 2 60 | ||
+ | Cpu:1 vCore | ||
+ | RAM:2 GB | ||
+ | Disk:60 GB NVMe SSD | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Distributor ID: Ubuntu | ||
+ | Description: | ||
+ | Release: | ||
+ | Codename: | ||
+ | </ | ||
+ | |||
+ | * Installed PHP and Apache2 | ||
+ | |||
+ | <code bash> | ||
+ | gm4slv@gm4slv: | ||
+ | PHP 8.3.6 (cli) (built: Dec 2 2024 12:36:18) (NTS) | ||
+ | Copyright (c) The PHP Group | ||
+ | Zend Engine v4.3.6, Copyright (c) Zend Technologies | ||
+ | with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies | ||
+ | </ | ||
+ | * configured SSL per previous method [[public: | ||
+ | * changed SSH port from default 22 to a //new// port, changed VPS firewall to suit new SSH port | ||
+ | * Ubunto OS brought up to date: '' | ||
+ | |||
+ | ===== Dokuwiki Security ===== | ||
+ | |||
+ | * previous installations used .htaccess to prevent web access to data/ | ||
+ | * this time I decided not to use .htaccess but to follow the alternative instructions in [[https:// | ||
+ | |||
+ | ==== LocationMatch method ==== | ||
+ | |||
+ | Apache is told which directories (data, conf, bin, inc, vendor) to make private. The downside is that this configuration might need altering if new directories are added during '' | ||
+ | |||
+ | add to ''/ | ||
+ | <code apache> | ||
+ | < | ||
+ | Order allow,deny | ||
+ | Deny from all | ||
+ | Satisfy All | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | '' | ||
+ | |||
+ | ==== .htaccess method ==== | ||
+ | |||
+ | the secured directories in '' | ||
+ | |||
+ | |||
+ | add to ''/ | ||
+ | |||
+ | <code apache> | ||
+ | < | ||
+ | Options Indexes FollowSymLinks MultiViews | ||
+ | AllowOverride All | ||
+ | Order allow,deny | ||
+ | allow from all | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | '' | ||
+ | |||
+ | ===== SSH Security ===== | ||
+ | |||
+ | * Configured '' | ||
+ | * be careful to check the files in ''/ | ||
+ | * uploaded public keys from | ||
+ | * Puttygen for [[https:// | ||
+ | * [[https:// | ||
+ | * saved both in '' | ||
+ | * now only logins with a valid public key will succeed. | ||
+ | * In the event of a loss of the public keys it's still possible to gain access via Fasthosts account dashboard | ||
+ | * -> then reconfigure sshd to accept password logins again until new keys can be uploaded. | ||
+ | |||
+ | ===== 06/04/25 : Renew SSL certificate ===== | ||
+ | |||
+ | * Same procedure as before | ||
+ | * Download " | ||
+ | * Download " | ||
+ | * Upload via WinSCP to VPS | ||
+ | * Copy old ''/ | ||
+ | * Copy old ''/ | ||
+ | * Copy new files into ''/ | ||
+ | * Restart Apache | ||
+ | * There were 2 " | ||
+ | * I used the one named '' | ||
+ | * This is the same as the one used when I renewed '' | ||
+ | * It seems that the intermediate certificate is not unique to the domain being secured, it's a certificate that verifies the identity of the authenticator of the domain' | ||
+ | |||
+ | ===== Old information below is for historical information ===== | ||
<note warning> | <note warning> | ||
Line 22: | Line 121: | ||
</ | </ | ||
- | ===== Old information below is for historical information ===== | + | |
< | < | ||
OS : Debian 10 (Buster) | OS : Debian 10 (Buster) | ||
Line 38: | Line 137: | ||
==== Access via FastHosts ==== | ==== Access via FastHosts ==== | ||
- | * browse to [[https:// | + | * browse to [[https:// |
===== Installing SSL for HTTPS ===== | ===== Installing SSL for HTTPS ===== | ||
==== Create Certificates ==== | ==== Create Certificates ==== | ||
Line 183: | Line 282: | ||
* restarted apache '' | * restarted apache '' | ||
* check new valid certificate now in use in web browser | * check new valid certificate now in use in web browser | ||
- | * {{:public:linux: | + | * {{:public:computers: |
* Validity Issued on & Expires on dates now show new certificate is in use | * Validity Issued on & Expires on dates now show new certificate is in use | ||
- | ===== New VPS : March 2025 ===== | ||
- | * New VPS 1 obtained at Fasthosts | ||
- | |||
- | < | ||
- | Type: | ||
- | Size:vps 1 2 60 | ||
- | Cpu:1 vCore | ||
- | RAM:2 GB | ||
- | Disk:60 GB NVMe SSD | ||
- | </ | ||
- | |||
- | < | ||
- | Distributor ID: Ubuntu | ||
- | Description: | ||
- | Release: | ||
- | Codename: | ||
- | </ | ||
- | |||
- | * Installed PHP and Apache2 | ||
- | |||
- | <code bash> | ||
- | gm4slv@gm4slv: | ||
- | PHP 8.3.6 (cli) (built: Dec 2 2024 12:36:18) (NTS) | ||
- | Copyright (c) The PHP Group | ||
- | Zend Engine v4.3.6, Copyright (c) Zend Technologies | ||
- | with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies | ||
- | </ | ||
- | * configured SSL per previous method [[public: | ||
- | * changed SSH port from default 22 to a //new// port, changed VPS firewall to suit new SSH port | ||
- | * Ubunto OS brought up to date: '' | ||
- | |||
- | ===== Dokuwiki Security ===== | ||
- | |||
- | * previous installations used .htaccess to prevent web access to data/ | ||
- | * this time I decided not to use .htaccess but to follow the alternative instructions in [[https:// | ||
- | |||
- | ==== LocationMatch method ==== | ||
- | |||
- | Apache is told which directories (data, conf, bin, inc, vendor) to make private. The downside is that this configuration might need altering if new directories are added during '' | ||
- | |||
- | add to ''/ | ||
- | <code apache> | ||
- | < | ||
- | Order allow,deny | ||
- | Deny from all | ||
- | Satisfy All | ||
- | </ | ||
- | </ | ||
- | |||
- | '' | ||
- | |||
- | ==== .htaccess method ==== | ||
- | |||
- | the secured directories in '' | ||
- | |||
- | |||
- | add to ''/ | ||
- | |||
- | <code apache> | ||
- | < | ||
- | Options Indexes FollowSymLinks MultiViews | ||
- | AllowOverride All | ||
- | Order allow,deny | ||
- | allow from all | ||
- | </ | ||
- | </ | ||
- | |||
- | '' | ||
- | |||
- | ===== SSH Security ===== | ||
- | |||
- | * Configured '' | ||
- | * be careful to check the files in ''/ | ||
- | * uploaded public keys from | ||
- | * Puttygen for [[https:// | ||
- | * [[https:// | ||
- | * saved both in '' | ||
- | * now only logins with a valid public key will succeed. | ||
- | * In the event of a loss of the public keys it's still possible to gain access via Fasthosts account dashboard, and then to reconfigure sshd to accept password logins again until new keys can be uploaded. | ||
- | // | ||
Page Updated : ~~LASTMOD~~ | Page Updated : ~~LASTMOD~~ |
public/computers/vps_tips_tricks.1741288920.txt.gz · Last modified: 06/03/25 19:22 GMT by john