Re: PHP Mirror Waiting List - ru.php.net
[email protected] (Yaroslav Gorodetsky)
| Newsgroups | php.mirrors |
|---|---|
| Message-ID | <[email protected]> |
Daniel, We've set up our mirror at 78.41.104.46 (temporary address), following the instructions at http://php.net/mirroring.php. However, the mirror does not work correctly: there's permanet loop of redirects to a search page when we get any request to that mirror. Could you advise us how to solve this problem? We use: OS: FreeBSD 7.0-RELEASE-p5 PHP: 5.2.8 Apache: 2.2.9 (config enclosed) Here's the example of the URL we're getting after accessing the mirror: http://ru.php.net/search.php?show=quickref&lang=ru&pattern=search.php%3Fshow%3Dquickref%26lang%3Dru%26pattern%3Dsearch.php%253Fshow% 253Dquickref%2526lang%253Dru%2526pattern%253Dsearch.php%25253Fshow%25253Dquickref%252526lang%25253Dru%252526pattern%25253Dsearch.php %2525253Fshow%2525253Dquickref%25252526lang%2525253Dru%25252526pattern%2525253Dsearch.php%252525253Fshow%252525253Dquickref%25252525 26lang%252525253Dru%2525252526pattern%252525253Dsearch.php%25252525253Fshow%25252525253Dquickref%252525252526lang%25252525253Dru%252 525252526pattern%25252525253Dsearch.php%2525252525253Fshow%2525252525253Dquickref%25252525252526lang%2525252525253Dru%25252525252526 pattern%2525252525253Dsearch.php%252525252525253Fshow%252525252525253Dquickref%2525252525252526lang%252525252525253Dru%2525252525252 526pattern%252525252525253Dsearch.php%25252525252525253Fshow%25252525252525253Dquickref%252525252525252526lang%25252525252525253Dru% 252525252525252526pattern%25252525252525253Dsearch.php%2525252525252525253Fshow%2525252525252525253Dquickref%25252525252525252526lan g%2525252525252525253Dru%25252525252525252526pattern%2525252525252525253Dsearch.php%252525252525252525253Fshow%252525252525252525253 Dquickref%2525252525252525252526lang%252525252525252525253Dru%2525252525252525252526pattern%252525252525252525253Dsearch.php%2525252 5252525252525253Fshow%25252525252525252525253Dquickref%252525252525252525252526lang%25252525252525252525253Dru%252525252525252525252 526pattern%25252525252525252525253Dsearch.php%2525252525252525252525253Fshow%2525252525252525252525253Dquickref%25252525252525252525 252526lang%2525252525252525252525253Dru%25252525252525252525252526pattern%2525252525252525252525253Dsearch.php%252525252525252525252 525253Fshow%252525252525252525252525253Dquickref%2525252525252525252525252526lang%252525252525252525252525253Dru%2525252525252525252 525252526pattern%252525252525252525252525253Dsearch.php%25252525252525252525252525253Fshow%25252525252525252525252525253Dquickref%25 2525252525252525252525252526lang%25252525252525252525252525253Dru%252525252525252525252525252526pattern%2525252525252525252525252525 3Dsearch.php%2525252525252525252525252525253Fshow%2525252525252525252525252525253Dquickref%25252525252525252525252525252526lang%2525 252525252525252525252525253Dru%25252525252525252525252525252526pattern%2525252525252525252525252525253Dsearch.php%252525252525252525 252525252525253Fshow%252525252525252525252525252525253Dquickref%2525252525252525252525252525252526lang%25252525252525252525252525252 5253Dru%2525252525252525252525252525252526pattern%252525252525252525252525252525253Dsearch.php%25252525252525252525252525252525253Fs how%25252525252525252525252525252525253Dquickref%252525252525252525252525252525252526lang%25252525252525252525252525252525253Dru%252 525252525252525252525252525252526pattern%25252525252525252525252525252525253Dsearch.php%2525252525252525252525252525252525253Fshow%2 525252525252525252525252525252525253Dquickref%25252525252525252525252525252525252526lang%2525252525252525252525252525252525253Dru%25 252525252525252525252525252525252526pattern%2525252525252525252525252525252525253Dsearch.php%252525252525252525252525252525252525253 Fshow%252525252525252525252525252525252525253Dquickref%2525252525252525252525252525252525252526lang%25252525252525252525252525252525 2525253Dru%2525252525252525252525252525252525252526pattern%252525252525252525252525252525252525253D Best Regards, Yaroslav Yaroslav Gorodetsky ?????: > Daniel, > > Sorry for a long delay with the answer, due to New Year and Christmas > holidays in Russia. We'll be glad to host an official PHP mirror, and > we've already started to set it up following the instructions on your > web site. I'll get back to you as soon we set up the mirror, most > probably by tomorrow morning your time. > > Best Regards, > Yaroslav > > Daniel Brown ?????: >> Yaro, >> >> On 18 December, 2008 (just a couple of weeks ago), you requested >> to be added to the waiting list for official PHP mirrors. If you and >> NGENIX are still interested in donating server resources and >> bandwidth, we would like to invite you to become an official mirror. >> >> To get things moving, please go to http://php.net/mirroring.php >> and follow the instructions there, and reply back to this message to >> let us know of your intent. Your mirror will be RU.PHP.NET and can be >> added to the queue for automatic checking and listing as soon as >> tomorrow morning. >> >> Thanks again for your offer, and I'm looking forward to a >> long-lasting partnership. >> >
apache_config.txt
(text/plain, 15.5 KB)
##### $Id: httpd.conf.mc,v 1.2 2008/10/23 08:14:48 abc Exp $ #####
#
ServerRoot "/usr/local"
User www
Group www
#SetEnv LC_ALL C
Listen 78.41.104.32:80
NameVirtualHost 78.41.104.32:80
# Dynamic Shared Object (DSO)
##### $Id: dso.any.m4,v 1.1 2008/10/23 08:01:29 abc Exp $ #####
#
LoadModule authn_file_module libexec/apache22/mod_authn_file.so
LoadModule authn_dbm_module libexec/apache22/mod_authn_dbm.so
LoadModule authn_anon_module libexec/apache22/mod_authn_anon.so
LoadModule authn_default_module libexec/apache22/mod_authn_default.so
LoadModule authn_alias_module libexec/apache22/mod_authn_alias.so
LoadModule authz_host_module libexec/apache22/mod_authz_host.so
LoadModule authz_groupfile_module libexec/apache22/mod_authz_groupfile.so
LoadModule authz_user_module libexec/apache22/mod_authz_user.so
LoadModule authz_dbm_module libexec/apache22/mod_authz_dbm.so
LoadModule authz_owner_module libexec/apache22/mod_authz_owner.so
LoadModule authz_default_module libexec/apache22/mod_authz_default.so
LoadModule auth_basic_module libexec/apache22/mod_auth_basic.so
LoadModule auth_digest_module libexec/apache22/mod_auth_digest.so
#LoadModule file_cache_module libexec/apache22/mod_file_cache.so
LoadModule cache_module libexec/apache22/mod_cache.so
LoadModule disk_cache_module libexec/apache22/mod_disk_cache.so
#LoadModule dumpio_module libexec/apache22/mod_dumpio.so
#LoadModule include_module libexec/apache22/mod_include.so
#LoadModule filter_module libexec/apache22/mod_filter.so
#LoadModule charset_lite_module libexec/apache22/mod_charset_lite.so
#LoadModule deflate_module libexec/apache22/mod_deflate.so
LoadModule log_config_module libexec/apache22/mod_log_config.so
LoadModule logio_module libexec/apache22/mod_logio.so
LoadModule env_module libexec/apache22/mod_env.so
LoadModule mime_magic_module libexec/apache22/mod_mime_magic.so
#LoadModule cern_meta_module libexec/apache22/mod_cern_meta.so
LoadModule expires_module libexec/apache22/mod_expires.so
LoadModule headers_module libexec/apache22/mod_headers.so
LoadModule usertrack_module libexec/apache22/mod_usertrack.so
#LoadModule unique_id_module libexec/apache22/mod_unique_id.so
LoadModule setenvif_module libexec/apache22/mod_setenvif.so
#LoadModule version_module libexec/apache22/mod_version.so
LoadModule ssl_module libexec/apache22/mod_ssl.so
LoadModule mime_module libexec/apache22/mod_mime.so
#LoadModule dav_module libexec/apache22/mod_dav.so
#LoadModule status_module libexec/apache22/mod_status.so
LoadModule autoindex_module libexec/apache22/mod_autoindex.so
#LoadModule asis_module libexec/apache22/mod_asis.so
#LoadModule info_module libexec/apache22/mod_info.so
LoadModule cgi_module libexec/apache22/mod_cgi.so
#LoadModule dav_fs_module libexec/apache22/mod_dav_fs.so
LoadModule vhost_alias_module libexec/apache22/mod_vhost_alias.so
LoadModule negotiation_module libexec/apache22/mod_negotiation.so
LoadModule dir_module libexec/apache22/mod_dir.so
#LoadModule imagemap_module libexec/apache22/mod_imagemap.so
#LoadModule actions_module libexec/apache22/mod_actions.so
#LoadModule speling_module libexec/apache22/mod_speling.so
LoadModule userdir_module libexec/apache22/mod_userdir.so
LoadModule alias_module libexec/apache22/mod_alias.so
LoadModule rewrite_module libexec/apache22/mod_rewrite.so
LoadModule php5_module libexec/apache22/libphp5.so
LoadModule proxy_module libexec/apache22/mod_proxy.so
LoadModule proxy_http_module libexec/apache22/mod_proxy_http.so
#LoadModule foo_module libexec/apache22/mod_foo.so
<IfModule ssl_module>
Listen 78.41.104.32:443
NameVirtualHost 78.41.104.32:443
</IfModule>
# Server-pool management (MPM specific)
##### $Id: mpm.any.m4,v 1.1 2008/10/23 08:01:30 abc Exp $ #####
#
PidFile /var/run/httpd.pid
LockFile /var/run/http-accept.lock
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_worker_module>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
# General Server Configuration
##### $Id: general.any.m4,v 1.1 2008/10/23 08:01:29 abc Exp $ #####
#
Timeout 300
FileETag INode MTime Size
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 5
UseCanonicalName On
AccessFileName .htaccess
ServerTokens Minor
ServerSignature Off
HostnameLookups Off
EnableMMAP off
EnableSendfile On
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
RedirectMatch /CVS http://www.cvshome.org/
<Directory />
AllowOverride None
Order deny,allow
Deny from all
</Directory>
# Logging formats
##### $Id: log.any.m4,v 1.1 2008/10/23 08:01:29 abc Exp $ #####
#
LogLevel warn
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
<IfModule ssl_module>
LogFormat "%h %{SSL_PROTOCOL}x %{SSL_CIPHER}x %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" sslcombined
<IfModule logio_module>
LogFormat "%h %{SSL_PROTOCOL}x %{SSL_CIPHER}x %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" sslcombinedio
</IfModule>
</IfModule>
</IfModule>
# Multi-language error messages
# See etc/apache22/extras/httpd-multilang-errordoc.conf
#Include etc/apache22/Includes/httpd-multilang-errordoc.conf
# Language settings
##### $Id: languages.any.m4,v 1.1 2008/10/23 08:01:29 abc Exp $ #####
#
# Required modules: mod_mime, mod_negotiation
#DefaultLanguage ru
AddLanguage en .en
AddLanguage ru .ru
LanguagePriority en ru
ForceLanguagePriority Prefer Fallback
AddCharset us-ascii.ascii .us-ascii
AddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4
AddCharset ISO-8859-5 .iso8859-5 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .arb .arabic
AddCharset ISO-8859-7 .iso8859-7 .grk .greek
AddCharset ISO-8859-8 .iso8859-8 .heb .hebrew
AddCharset ISO-8859-9 .iso8859-9 .latin5 .trk
AddCharset ISO-8859-10 .iso8859-10 .latin6
AddCharset ISO-8859-13 .iso8859-13
AddCharset ISO-8859-14 .iso8859-14 .latin8
AddCharset ISO-8859-15 .iso8859-15 .latin9
AddCharset ISO-8859-16 .iso8859-16 .latin10
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5.Big5 .big5 .b5
AddCharset cn-Big5 .cn-big5
# For russian, more than one charset is used (depends on client, mostly):
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset KOI8 .koi8
AddCharset KOI8-E .koi8-e
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-U .koi8-u
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-7 .utf7
AddCharset UTF-8 .utf8
AddCharset UTF-16 .utf16
AddCharset UTF-16BE .utf16be
AddCharset UTF-16LE .utf16le
AddCharset UTF-32 .utf32
AddCharset UTF-32BE .utf32be
AddCharset UTF-32LE .utf32le
AddCharset euc-cn .euc-cn
AddCharset euc-gb .euc-gb
AddCharset euc-jp .euc-jp
AddCharset euc-kr .euc-kr
#Not sure how euc-tw got in - IANA doesn't list it???
AddCharset EUC-TW .euc-tw
AddCharset gb2312 .gb2312 .gb
AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2
AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4
AddCharset shift_jis .shift_jis .sjis
# Fancy directory listings
### $Id: autoindex.any.m4,v 1.1 2008/10/23 08:01:29 abc Exp $ ###
#
# Required modules: mod_autoindex, mod_alias
#
IndexOptions FancyIndexing HTMLTable VersionSort
Alias /icons/ "/usr/local/www/apache22/icons/"
<Directory "/usr/local/www/apache22/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip .rar .ace
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz
ReadmeName README.html
HeaderName HEADER.html
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
# MIME
##### $Id: mime.any.m4,v 1.1 2008/10/23 08:01:30 abc Exp $ #####
#
DefaultType text/plain
<IfModule mime_module>
TypesConfig etc/apache22/mime.types
#AddType application/x-gzip .tgz
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
AddType text/html .shtml
AddHandler server-parsed .shtml
#AddOutputFilter INCLUDES .shtml
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>
MIMEMagicFile etc/apache22/magic
# User home directories
### $Id: userdir.any.m4,v 1.1 2008/10/23 08:01:30 abc Exp $ ###
#
# Required module: mod_userdir
UserDir htdocs
UserDir disabled root toor daemon operator bin tty kmem games news man sshd bind proxy _pflogd _dhcp uucp pop www nobody mailnull smmsp
<Directory /home/*/htdocs>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
# Local access to the Apache HTTP Server Manual
#include(manual.any.m4)dnl
# Main server config ngenix.net ncdn.ru etc
##### $Id: main.any.m4,v 1.2 2008/10/30 17:12:56 abc Exp $ #####
#
<Directory "/usr/local/www/ngenix">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<VirtualHost 78.41.104.32:80>
ServerName www.ngenix.net
ServerAlias ngenix.net
ServerAdmin [email protected]
ServerSignature EMail
ExpiresActive On
ExpiresDefault "access plus 1 month"
# ExpiresByType text/html "access plus 1 month 15 days 2 hours"
# ExpiresByType image/gif "modification plus 5 hours 3 minutes"
ErrorLog /var/log/httpd-error.log
CustomLog /var/log/httpd-access.log combined
DirectoryIndex index.php
DocumentRoot "/usr/local/www/ngenix"
</VirtualHost>
<VirtualHost 78.41.104.32:80>
ServerName www
ServerAlias www.ngenix.ru ngenix.ru www.ngenix.org ngenix.org www.ngenix.biz ngenix.biz www.ngenix.info ngenix.info www.ncdn.ru ncdn.ru www.cctnet.ru cctnet.ru
ServerAdmin [email protected]
Redirect permanent / http://www.ngenix.net/
</VirtualHost>
Listen 78.41.104.44:80
NameVirtualHost 78.41.104.44:80
<VirtualHost 78.41.104.44:80>
ServerName cn.youdo.ru
#ServerAlias cn.youdo.ru
ServerAdmin [email protected]
ServerSignature EMail
CacheRoot /mirror/www-cache/youdo
# CacheDefaultExpire 86400
# CacheMaxExpire 604800
CacheEnable disk /
CacheMaxFileSize 1073741824
CacheMinFileSize 1
CacheDirLevels 2
CacheDirLength 1
CacheStoreNoStore On
CacheStorePrivate On
CacheIgnoreCacheControl On
CacheIgnoreNoLastMod On
ProxyPass / http://78.140.147.4/
ProxyPassReverse / http://78.140.147.4/
ProxyPreserveHost On
<Proxy http://78.140.147.4>
ProxySet keepalive=On
</Proxy>
ErrorLog /var/log/httpd-youdo-error.log
CustomLog /var/log/httpd-youdo-access.log combined
</VirtualHost>
<IfModule ssl_module>
<VirtualHost 78.41.104.32:443>
ServerName bear-msk.ngenix.net
ServerAdmin [email protected]
ServerSignature EMail
SSLEngine on
SSLCertificateFile /usr/local/certs/bear-msk.crt
SSLCertificateKeyFile /usr/local/certs/bear-msk.key
ErrorLog /var/log/httpd-error.log
CustomLog /var/log/httpd-access.log combined
DirectoryIndex index.html index.shtml index.php
DocumentRoot "/usr/local/www/ngenix"
<Directory "/usr/local/www/ngenix">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.php
</Directory>
<IfModule alias_module>
ScriptAlias /nagios/cgi-bin/ "/usr/local/www/nagios/cgi-bin/"
Alias /nagios/ "/usr/local/www/nagios/"
</IfModule>
<Directory "/usr/local/www/nagios/">
Options None
SSLOptions +StdEnvVars
AllowOverride AuthConfig
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType basic
AuthUserFile /usr/local/etc/cdn/nagios/.htpasswd
Require valid-user
</Directory>
<Directory "/usr/local/www/nagios/cgi-bin/">
Options ExecCGI
</Directory>
</VirtualHost>
</IfModule>
Listen 78.41.104.46:80
#NameVirtualHost IP_PHP:80
<Directory /mirror/php.net>
# Do not display directory listings if index is not present,
# and do not try to match filenames if extension is omitted
Options -Indexes -MultiViews
</Directory>
<VirtualHost 78.41.104.46:80>
ServerName ru.php.net
ServerAlias www.ru.php.net
ServerAdmin [email protected]
ServerSignature EMail
DocumentRoot /mirror/php.net
ErrorLog /var/log/httpd-php-error.log
CustomLog /var/log/httpd-php-access.log combined
DirectoryIndex index.php index.html
ErrorDocument 401 /error.php
ErrorDocument 403 /error.php
ErrorDocument 404 /error.php
AddType application/octet-stream .chm .bz2 .tgz .msi
AddType application/x-pilot .prc .pdb
# Set mirror's preferred language here
SetEnv MIRROR_LANGUAGE "ru"
# The next two lines are only necessary if generating
# stats (see below), otherwise you should comment them out
#Alias /stats/ /path/to/local/stats/
#SetEnv MIRROR_STATS 1
# Apache2 has 'AddHandler type-map var' enabled by default.
# Remove the comment sign on the line below if you have it enabled.
RemoveHandler var
# Turn spelling support off (which would break URL shortcuts)
<IfModule mod_speling.c>
CheckSpelling Off
</IfModule>
</VirtualHost>