# HG changeset patch # User Alex McMahon # Date 1245760905 -3600 # Node ID e2ac834162fb58ddca30729067ae768e4adf3313 # Parent bfe0d3de27649ac99bc459d951157793a4481630 renamed site diff -r bfe0d3de2764 -r e2ac834162fb mysql_apache/n4c-default-site --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysql_apache/n4c-default-site Tue Jun 23 13:41:45 2009 +0100 @@ -0,0 +1,145 @@ + + ServerAdmin librarian@village.n4c.eu + ServerName dtnrouter.village.n4c.eu + + + DocumentRoot /var/www/private/HTMLrequester + + + Options Indexes MultiViews FollowSymLinks + AuthType Basic + AuthName "Member's Area" + AuthFormAuthoritative On + + AuthFormMySQLHost localhost + AuthFormMySQLUsername www-data + AuthFormMySQLPassword www-data + AuthFormMySQLDB members + + AuthFormMySQLTableSID sessions + AuthFormMySQLTableGID uid_gid + AuthFormMySQLTableTracking tracking + + AuthFormMySQLFieldUID uid + AuthFormMySQLFieldGID gid + AuthFormMySQLFieldDownloadSize download_size + AuthFormMySQLFieldDownloadPath download_path + AuthFormMySQLFieldDownloadDate download_date + AuthFormMySQLFieldTimeout timeout_date + AuthFormMySQLFieldIPAddress client_ip_address + AuthFormMySQLFieldExpiration expiration_date + + #AuthFormMySQLTableGIDCondition + AuthFormMySQLTableSIDCondition "`sid`=$sid1 AND `sid_dir`=$sid2 AND (`uid`=$uid OR `signature`='members')" + + #AuthFormMySQLTableTrackingCondition + + AuthFormSessionTimeout 30 + AuthFormSessionCookies On + AuthFormSessionAutoRefresh -1 + AuthFormTrackingLifetime 30 + + AuthFormPageLogin index.php + AuthFormPageExpired /session_expired.html + AuthFormLastPageKey go_back_to + #AuthFormPageAutoRefresh + #AuthFormPageNotAllowed + + #Require valid-user + Require group 0 + + + + + Options Indexes MultiViews FollowSymLinks + AuthType Basic + AuthName "Staging area" + AuthFormAuthoritative On + + AuthFormMySQLHost localhost + AuthFormMySQLUsername www-data + AuthFormMySQLPassword www-data + AuthFormMySQLDB members + + AuthFormMySQLTableSID sessions + AuthFormMySQLTableGID uid_gid + AuthFormMySQLTableTracking tracking + + AuthFormMySQLFieldUID uid + AuthFormMySQLFieldGID gid + AuthFormMySQLFieldDownloadSize download_size + AuthFormMySQLFieldDownloadPath download_path + AuthFormMySQLFieldDownloadDate download_date + AuthFormMySQLFieldTimeout timeout_date + AuthFormMySQLFieldIPAddress client_ip_address + AuthFormMySQLFieldExpiration expiration_date + + #AuthFormMySQLTableGIDCondition + AuthFormMySQLTableSIDCondition "`sid`=$sid1 AND `uid`=$uid" + + #AuthFormMySQLTableTrackingCondition + + AuthFormSessionTimeout 30 + AuthFormSessionCookies On + AuthFormSessionAutoRefresh -1 + AuthFormTrackingLifetime 30 + + AuthFormPageLogin /HTMLprivaterequest.html + AuthFormPageExpired /session_expired.html + AuthFormLastPageKey go_back_to + #AuthFormPageAutoRefresh + #AuthFormPageNotAllowed + + #Require valid-user + Require group 0 + + + + AuthFormPageNotAllowed /paying_members_only.html + AuthFormMySQLTableSIDCondition "`sid`=$sid1 AND `sid_dir`=$sid2 AND (`uid`=$uid OR `signature`='some_signature_public')" + Require group 1 + + + AuthFormPageNotAllowed /premium_only.html + Require group 2 + + + AuthType Basic + AuthName "Administration" + AuthUserFile /var/www/private/passwords + + # Turn off 'mod_auth_form' in this directory, + # giving control to 'mod_auth'. + AuthFormAuthoritative Off + + Allow from 127.0.0.1 # localhost + Deny from all + Order Deny,Allow + Require valid-user + + + ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ + + AllowOverride None + Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch + Order allow,deny + Allow from all + + + ErrorLog /var/log/apache2/error.log + + # Possible values include: debug, info, notice, warn, error, crit, + # alert, emerg. + LogLevel debug + + CustomLog /var/log/apache2/access.log combined + + Alias /doc/ "/usr/share/doc/" + + Options Indexes MultiViews FollowSymLinks + AllowOverride None + Order deny,allow + Deny from all + Allow from 127.0.0.0/255.0.0.0 ::1/128 + +