http redirect

This commit is contained in:
Vasco
2026-04-27 22:24:14 +01:00
parent a0fbbe210d
commit 53e24aa2ea
3 changed files with 10 additions and 4 deletions

View File

@@ -1 +1 @@
# LoadModule authnz_pam_module modules/mod_authnz_pam.so
LoadModule authnz_pam_module modules/mod_authnz_pam.so

View File

@@ -57,3 +57,9 @@ Listen 443 https
</Location>
</VirtualHost>
# redirect para https
<VirtualHost *:80>
ServerName 10.60.0.1
Redirect permanent / https://10.60.0.1/
</VirtualHost>

View File

@@ -3,16 +3,16 @@ port 1194
proto udp
dev tun
verb 4
# Bro is too honorable
ca /etc/openvpn/server/ca.crt
cert /etc/openvpn/server/vpn.crt
key /etc/openvpn/server/vpn.key
dh /etc/openvpn/server/dh2048.pem
server 10.8.0.0 255.255.255.0
verb 4
topology subnet
server 10.8.0.0 255.255.255.0
push "route 10.60.0.0 255.255.255.0"
# OCSP and Revocation