8 open(my $fh, '>', "providers/$domains[0].conf");
10 print $fh qq{# $0 @domains\n\n};
12 foreach my $domain ( @domains ) {
17 Include /srv/via-proxy/ssl.conf
19 ServerName ${domain}.p.vbz.ffzg.hr
23 ProxyPass / https://${domain}/
24 ProxyPassReverse / https://${domain}/
26 Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "\$1 ; domain=\$2.p.vbz.ffzg.hr \$3"
27 #Header edit* Set-Cookie "(.*)(?i:; *secure)" "\$1"
30 foreach ( @domains ) {
31 print $fh qq{\tHeader edit* Location "https://$_/" "https://$_.p.vbz.ffzg.hr/"\n};
35 RequestHeader unset Accept-Encoding
38 foreach ( @domains ) {
39 print $fh qq{\tSubstitute "s|https://$_|https://$_.p.vbz.ffzg.hr|"\n};
43 FilterDeclare NEWPATHS
44 FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
45 FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
46 FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
47 FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
50 CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
56 print $fh "\n\n## add domains to SSL certificate:\n";
57 print "## add domains to SSL certificate:\n";
58 foreach ( @domains ) {
59 print $fh qq{# $_.p.vbz.ffzg.hr\n};
60 print qq{$_.p.vbz.ffzg.hr\n};