-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* force HTTPS * fix typo in rewrite condition
- Loading branch information
Showing
9 changed files
with
32 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,9 @@ | ||
<VirtualHost *:80> | ||
ServerName clientip.{{ mailserver_domain }} | ||
|
||
DocumentRoot /var/www/poweradmin/ | ||
RewriteEngine on | ||
RewriteCond %{HTTPS} off | ||
RewriteCond %{SERVER_NAME} =clientip.{{ mailserver_domain }} | ||
|
||
ErrorLog /var/log/httpd/poweradmin_error.log | ||
CustomLog /var/log/httpd/poweradmin_access.log combined | ||
|
||
<Directory /> | ||
Options FollowSymLinks | ||
AllowOverride All | ||
</Directory> | ||
|
||
<Directory /var/www/poweradmin/> | ||
Options FollowSymLinks MultiViews | ||
AllowOverride All | ||
Order allow,deny | ||
allow from all | ||
</Directory> | ||
|
||
RewriteEngine on | ||
RewriteCond %{SERVER_NAME} =clientip.{{ mailserver_domain }} | ||
|
||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] | ||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] | ||
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,9 @@ | ||
<VirtualHost *:80> | ||
ServerName dyndns.{{ mailserver_domain }} | ||
|
||
DocumentRoot /var/www/poweradmin/ | ||
RewriteEngine on | ||
RewriteCond %{HTTPS} off | ||
RewriteCond %{SERVER_NAME} =dyndns.{{ mailserver_domain }} | ||
|
||
ErrorLog /var/log/httpd/poweradmin_error.log | ||
CustomLog /var/log/httpd/poweradmin_access.log combined | ||
|
||
<Directory /> | ||
Options FollowSymLinks | ||
AllowOverride All | ||
</Directory> | ||
|
||
<Directory /var/www/poweradmin/> | ||
Options FollowSymLinks MultiViews | ||
AllowOverride All | ||
Order allow,deny | ||
allow from all | ||
</Directory> | ||
|
||
RewriteEngine on | ||
RewriteCond %{SERVER_NAME} =dynsdns.{{ mailserver_domain }} | ||
|
||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] | ||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] | ||
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,8 @@ | ||
<VirtualHost *:80> | ||
ServerName postfixadmin.vpn.{{ mailserver_domain }} | ||
|
||
DocumentRoot /var/www/postfixadmin/public/ | ||
RewriteEngine on | ||
RewriteCond %{SERVER_NAME} =postfixadmin.vpn.{{ mailserver_domain }} | ||
|
||
ErrorLog /var/log/httpd/postfixadmin_error.log | ||
CustomLog /var/log/httpd/postfixadmin_access.log combined | ||
|
||
<Directory /> | ||
Options FollowSymLinks | ||
AllowOverride All | ||
<RequireAny> | ||
Require ip {{ wireguard.ipv4_pool }} {{ wireguard.ipv6_pool }} | ||
{% for dynamic_host_name in wg_configs.keys() | list %} | ||
{% if dynamic_host_name != "server "%} | ||
Require forward-dns {{ dynamic_host_name }}.dyndns.{{ mailserver_domain }} | ||
Require forward-dns {{ dynamic_host_name }}.{{ mailserver_admin_user }}.dyndns.{{ mailserver_domain }} | ||
{% endif %} | ||
{% endfor %} | ||
</RequireAny> | ||
</Directory> | ||
|
||
<Directory /var/www/postfixadmin/public/> | ||
Options FollowSymLinks MultiViews | ||
AllowOverride All | ||
<RequireAny> | ||
Require ip {{ wireguard.ipv4_pool }} {{ wireguard.ipv6_pool }} | ||
{% for dynamic_host_name in wg_configs.keys() | list %} | ||
{% if dynamic_host_name != "server "%} | ||
Require forward-dns {{ dynamic_host_name }}.dyndns.{{ mailserver_domain }} | ||
Require forward-dns {{ dynamic_host_name }}.{{ mailserver_admin_user }}.dyndns.{{ mailserver_domain }} | ||
{% endif %} | ||
{% endfor %} | ||
</RequireAny> | ||
</Directory> | ||
|
||
RewriteEngine on | ||
RewriteCond %{SERVER_NAME} =postfixadmin.vpn.{{ mailserver_domain }} | ||
|
||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] | ||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] | ||
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,8 @@ | ||
<VirtualHost *:80> | ||
ServerName poweradmin.vpn.{{ mailserver_domain }} | ||
|
||
DocumentRoot /var/www/poweradmin/ | ||
RewriteEngine on | ||
RewriteCond %{SERVER_NAME} =poweradmin.vpn.{{ mailserver_domain }} | ||
|
||
ErrorLog /var/log/httpd/poweradmin_error.log | ||
CustomLog /var/log/httpd/poweradmin_access.log combined | ||
|
||
<Directory /> | ||
Options FollowSymLinks | ||
AllowOverride All | ||
<RequireAny> | ||
Require ip {{ wireguard.ipv4_pool }} {{ wireguard.ipv6_pool }} | ||
{% for dynamic_host_name in wg_configs.keys() | list %} | ||
{% if dynamic_host_name != "server "%} | ||
Require forward-dns {{ dynamic_host_name }}.dyndns.{{ mailserver_domain }} | ||
Require forward-dns {{ dynamic_host_name }}.{{ mailserver_admin_user }}.dyndns.{{ mailserver_domain }} | ||
{% endif %} | ||
{% endfor %} | ||
</RequireAny> | ||
</Directory> | ||
|
||
<Directory /var/www/poweradmin/> | ||
Options FollowSymLinks MultiViews | ||
AllowOverride All | ||
<RequireAny> | ||
Require ip {{ wireguard.ipv4_pool }} {{ wireguard.ipv6_pool }} | ||
{% for dynamic_host_name in wg_configs.keys() | list %} | ||
{% if dynamic_host_name != "server "%} | ||
Require forward-dns {{ dynamic_host_name }}.dyndns.{{ mailserver_domain }} | ||
Require forward-dns {{ dynamic_host_name }}.{{ mailserver_admin_user }}.dyndns.{{ mailserver_domain }} | ||
{% endif %} | ||
{% endfor %} | ||
</RequireAny> | ||
</Directory> | ||
|
||
RewriteEngine on | ||
RewriteCond %{SERVER_NAME} =poweradmin.vpn.{{ mailserver_domain }} | ||
|
||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] | ||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] | ||
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
<VirtualHost *:80> | ||
ServerName vpn.{{ mailserver_domain }} | ||
|
||
RewriteEngine on | ||
RewriteCond %{SERVER_NAME} =vpn.{{ mailserver_domain }} | ||
|
||
ErrorLog /var/log/httpd/vpn_error.log | ||
CustomLog /var/log/httpd/vpn_access.log combined | ||
|
||
AddExternalAuth pwauth /usr/bin/pwauth | ||
SetExternalAuthMethod pwauth pipe | ||
|
||
RewriteEngine on | ||
RewriteCond %{SERVER_NAME} =vpn.{{ mailserver_domain }} | ||
|
||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] | ||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] | ||
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<VirtualHost *:80> | ||
# ServerName {{ mailserver_domain }} | ||
# ServerAlias {{ custom_domains | join(' ') }} | ||
|
||
ErrorLog /var/log/httpd/wildcard_error.log | ||
CustomLog /var/log/httpd/wildcard_access.log combined | ||
|
||
RewriteEngine on | ||
RewriteRule ^ https://youtu.be/LLFhKaqnWwk [END,NE,R=permanent] | ||
RewriteCond %{HTTPS} off | ||
|
||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] | ||
|
||
</VirtualHost> |