cvs: phpweb / .htaccess mirroring.php

From: Date: Mon, 16 Dec 2002 20:10:29 +0000
Subject: cvs: phpweb / .htaccess mirroring.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-14262@lists.php.net to get a copy of this message
goba Mon Dec 16 15:10:29 2002 EDT Removed files: /phpweb .htaccess Modified files: /phpweb mirroring.php Log: Further consolidate mirror settings into one file, the vhost settings of httpd.conf. Removing .htaccess, because: - include path was insecure (may include someting up from the path that is not php mirror stuff) - short open tags are no more required to be on - all the other settings, except the .pdb settings were already in mirroring.php Moving the .pdb AddType to mirroring.php's instructions, and also adding the 401 handler there. More comments to mirroring.php's vhost configuration section to make it more logical for those who set up a mirror. Index: phpweb/mirroring.php diff -u phpweb/mirroring.php:1.7 phpweb/mirroring.php:1.8 --- phpweb/mirroring.php:1.7 Sat Dec 14 12:42:40 2002 +++ phpweb/mirroring.php Mon Dec 16 15:10:29 2002 @@ -79,24 +79,43 @@ <a name="settings"></a> <pre> - &lt;VirtualHost your-hostname-here&gt; - ServerName your-hostname-here + &lt;VirtualHost *-or-your-hostname-here&gt; + ServerName *-or-your-hostname-here ServerAlias xx.php.net www.xx.php.net ServerAdmin yourname@yourdomain.com + + # Webroot of PHP mirror site DocumentRoot /www/htdocs/phpweb + + # These PHP settings are necessary to run a mirror php_value include_path .:/www/htdocs/phpweb/include php_flag register_globals on + + # Log server activity ErrorLog logs/error_log TransferLog logs/access_log + + # Set directory index DirectoryIndex index.php index.html - ErrorDocument 404 /error/index.php + + # Handle errors with local error handler script + ErrorDocument 401 /error/index.php ErrorDocument 403 /error/index.php + ErrorDocument 404 /error/index.php + + # Add types not specified by Apache by default AddType application/octet-stream .chm AddType application/octet-stream .bz2 - # next line is only necessary if generating stats (see /stats/README.stats) + AddType application/x-pilot .prc .pdb + + # The next line is only necessary if + # generating stats (see /stats/README.stats) Alias /stats/ /path/to/local/stats/ - # next line only necessary if providing local search support (see /Mirrors-htdig.tgz) + + # The next line is only necessary if you would + # like to provide local search support (see /Mirrors-htdig.tgz) SetEnv HTSEARCH_PROG /local/htdig/bin/htphp.sh + &lt;/VirtualHost&gt; </pre>

« previous php.mirrors (#14262) next »