update httpd fragment to add in private public option
This commit is contained in:
parent
c5a708a382
commit
fcc2a6fce8
@ -1,17 +1,40 @@
|
|||||||
# Alias for mailstats
|
{
|
||||||
Alias "/mailstats/css" "/opt/mailstats/css"
|
# mailstats
|
||||||
Alias "/mailstats" "/opt/mailstats/html"
|
my $status = $mailstats{'Status'} || 'disabled';
|
||||||
|
|
||||||
<Directory "/opt/mailstats/html">
|
if ($status eq 'enabled')
|
||||||
Options Indexes FollowSymLinks
|
{
|
||||||
AllowOverride None
|
$OUT .="#-------------------------------------------------\n";
|
||||||
Require all granted
|
$OUT .="# mailstats settings from smeserver-mailstats\n";
|
||||||
<FilesMatch .php$>
|
$OUT .="#-------------------------------------------------\n";
|
||||||
|
$OUT .="\n";
|
||||||
|
$OUT .= qq(
|
||||||
|
# Alias for mailstats
|
||||||
|
Alias "/mailstats/css" "/opt/mailstats/css"
|
||||||
|
Alias "/mailstats" "/opt/mailstats/html"
|
||||||
|
|
||||||
|
<Directory "/opt/mailstats/html">
|
||||||
|
Options Indexes FollowSymLinks
|
||||||
|
AllowOverride None
|
||||||
|
Require all granted
|
||||||
|
);
|
||||||
|
$OUT .= (($mailstats{access} || 'private' ) eq "public" ) ? " Require all granted": " Require ip $localAccess $externalSSLAccess";
|
||||||
|
$OUT .= qq(
|
||||||
|
<FilesMatch .php\$\>
|
||||||
SetHandler "proxy:unix:/var/run/php-fpm/php74.sock|fcgi://localhost"
|
SetHandler "proxy:unix:/var/run/php-fpm/php74.sock|fcgi://localhost"
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
<Directory "/opt/mailstats/css">
|
||||||
|
AllowOverride None
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
);
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$OUT .= "# mailstats is disabled";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
<Directory "/opt/mailstats/css">
|
|
||||||
AllowOverride None
|
|
||||||
Require all granted
|
|
||||||
</Directory>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user