mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Fixed url filter repository for local redirects.
This fixes bug #0000613
This commit is contained in:
@@ -51,11 +51,18 @@
|
||||
Require user dial admin
|
||||
</Directory>
|
||||
Alias /updatecache/ /var/updatecache/
|
||||
<Directory /var/updatecache>
|
||||
Options ExecCGI
|
||||
AllowOverride None
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
</Directory>
|
||||
<Directory /var/updatecache>
|
||||
Options ExecCGI
|
||||
AllowOverride None
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
</Directory>
|
||||
Alias /repository/ /var/urlrepo/
|
||||
<Directory /var/urlrepo>
|
||||
Options ExecCGI
|
||||
AllowOverride None
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
</Directory>
|
||||
|
||||
</VirtualHost>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#etc/squidGuard
|
||||
etc/squidGuard/squidGuard.conf
|
||||
srv/web/ipfire/html/repository
|
||||
usr/bin/squidGuard
|
||||
usr/sbin/redirect_wrapper
|
||||
#usr/squidGuard
|
||||
@@ -80,3 +79,5 @@ var/ipfire/urlfilter/version
|
||||
var/lib/squidguard
|
||||
#var/log/squidGuard
|
||||
var/log/squidGuard/squidGuard.log
|
||||
var/urlrepo
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ my $tcfile = "${General::swroot}/urlfilter/timeconst";
|
||||
my $uqfile = "${General::swroot}/urlfilter/userquota";
|
||||
my $dbdir = "${General::swroot}/urlfilter/blacklists";
|
||||
my $editdir = "${General::swroot}/urlfilter/editor";
|
||||
my $repository = "/home/httpd/html/repository";
|
||||
my $repository = "/var/urlrepo";
|
||||
my $hintcolour = '#FFFFCC';
|
||||
|
||||
my $sourceurlfile = "${General::swroot}/urlfilter/autoupdate/autoupdate.urls";
|
||||
|
||||
@@ -79,7 +79,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
cd $(DIR_APP) && make install
|
||||
|
||||
# URL-Filter
|
||||
-mkdir /etc/squidGuard /srv/web/ipfire/html/repository
|
||||
-mkdir /etc/squidGuard /var/urlrepo
|
||||
cp -f $(DIR_CONF)/urlfilter/autoupdate.urls /var/ipfire/urlfilter/autoupdate/autoupdate.urls
|
||||
ln -fs /bin/false /var/ipfire/urlfilter/autoupdate/cron.daily
|
||||
ln -fs /bin/false /var/ipfire/urlfilter/autoupdate/cron.weekly
|
||||
@@ -102,7 +102,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
chown -R nobody:nobody /var/ipfire/urlfilter
|
||||
chmod 755 /srv/web/ipfire/html/images/urlfilter
|
||||
chmod 644 /srv/web/ipfire/html/images/urlfilter/*
|
||||
chown -R nobody:nobody /srv/web/ipfire/html/repository
|
||||
chown -R nobody:nobody /var/urlrepo
|
||||
chown -R squid:squid /var/log/squidGuard
|
||||
|
||||
@rm -rf $(DIR_APP)
|
||||
|
||||
Reference in New Issue
Block a user