Displaying an error message whenever the config directory is read.
authorjongfoster <jongfoster@users.sourceforge.net>
Sat, 22 Sep 2001 14:55:41 +0000 (14:55 +0000)
committerjongfoster <jongfoster@users.sourceforge.net>
Sat, 22 Sep 2001 14:55:41 +0000 (14:55 +0000)
doc/webserver/config/.htaccess [new file with mode: 0644]
doc/webserver/config/index.php [new file with mode: 0644]

diff --git a/doc/webserver/config/.htaccess b/doc/webserver/config/.htaccess
new file mode 100644 (file)
index 0000000..934ac19
--- /dev/null
@@ -0,0 +1,28 @@
+# http://ijbswa.sourceforge.net/config/.htaccess
+#
+# By Jon Foster
+#
+# Redirects any request for any file in this directory tree
+# to an error page.
+#
+# Uses Apache's mod_rewrite
+# See http://httpd.apache.org/docs/mod/mod_rewrite.html
+#
+
+# Enable mod_rewrite
+RewriteEngine on
+
+# we are reached via /config/ prefix
+RewriteBase   /config/
+
+# The only file which really exists is index.php - allow this
+RewriteRule  index.php - [L]
+
+# Silently redirect the config dir to index.php
+RewriteRule  ^$      index.php [L]
+
+# anything else gets redirected to the config dir, and we update
+# the browser's location bar.
+RewriteRule  ^(.*)$  /config/  [R]
+
+
diff --git a/doc/webserver/config/index.php b/doc/webserver/config/index.php
new file mode 100644 (file)
index 0000000..9be0462
--- /dev/null
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<html><head>
+<title>Internet JunkBuster not running</title>
+</head>
+
+<body>
+
+<h1>JunkBuster isn't working</h1>
+
+<p>If you can see this page, it means that you aren't using the
+JunkBuster
+proxy. &nbsp; Please check your browser settings.</p>
+
+<p><a href="http://ijbswa.sourceforge.net/">Junkbuster home page</a></p>
+
+</body>
+</html>
+