feat: update doc/apache.md

This commit is contained in:
dancingCycle 2024-02-22 15:48:24 +01:00
parent e053f857b8
commit 5e35fa18b3
3 changed files with 35 additions and 0 deletions

8
doc/apache-proxy.md Normal file
View File

@ -0,0 +1,8 @@
* enable web service proxy modules
```
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo systemctl restart apache2
systemctl status apache2
sudo apachectl configtest
```

23
doc/apache-ssl.md Normal file
View File

@ -0,0 +1,23 @@
* check web service port configuration of `ssl_module` for port 443
```
sudo a2enmod ssl
sudo systemctl restart apache2
systemctl status apache2
sudo apachectl configtest
less /etc/apache2/ports.conf
```
* OPTION: check firewall (nftables) configuration for port 443
```
less /etc/nftables.conf
```
* OPTION: check firewall (ufw) configuration for port 443
```
sudo ufw status
```
* test API in browser
```
https://<hostname -I>
```

View File

@ -33,3 +33,7 @@ sudo ufw status
hostname -I
http://<server ip>
```
* OPTION: enable web service proxy modules like [this](./apache-proxy.md)
* OPTION: enable SSL like [this](./apache-ssl.md)