mysql_apache/apache-default-site
changeset 2 e8c21d72976d
child 12 e7e70577ce6c
equal deleted inserted replaced
1:29ae580f12bd 2:e8c21d72976d
       
     1 <VirtualHost *:80>
       
     2 	ServerAdmin webmaster@localhost
       
     3         ServerName sphere.dsg.cs.tcd.ie
       
     4 
       
     5 
       
     6 	DocumentRoot /var/www/private/HTMLrequester
       
     7 <Directory "/var/www/private/HTMLrequester/members">
       
     8 Options Indexes MultiViews FollowSymLinks
       
     9         AuthType Basic
       
    10         AuthName "Member's Area"
       
    11         AuthFormAuthoritative On
       
    12 
       
    13         AuthFormMySQLHost localhost
       
    14         AuthFormMySQLUsername www-data
       
    15         AuthFormMySQLPassword www-data
       
    16         AuthFormMySQLDB members
       
    17 
       
    18         AuthFormMySQLTableSID sessions
       
    19         AuthFormMySQLTableGID uid_gid
       
    20         AuthFormMySQLTableTracking tracking
       
    21 
       
    22         AuthFormMySQLFieldUID uid
       
    23         AuthFormMySQLFieldGID gid
       
    24         AuthFormMySQLFieldDownloadSize download_size
       
    25         AuthFormMySQLFieldDownloadPath download_path
       
    26         AuthFormMySQLFieldDownloadDate download_date
       
    27         AuthFormMySQLFieldTimeout timeout_date
       
    28         AuthFormMySQLFieldIPAddress client_ip_address
       
    29         AuthFormMySQLFieldExpiration expiration_date
       
    30 
       
    31         #AuthFormMySQLTableGIDCondition
       
    32 #       AuthFormMySQLTableSIDCondition "`sid`=$sid1 AND `sid_dir`=$sid2 AND (`uid`=$uid OR `signature`='members')"
       
    33        AuthFormMySQLTableSIDCondition "`sid`=$sid1 AND `sid_dir`=$sid2 AND (`uid`=$uid OR `signature`='members')"
       
    34 #   AuthFormMySQLTableSIDCondition "`sid`=$sid1 AND `sid_dir`=$sid2"
       
    35 
       
    36 
       
    37         #AuthFormMySQLTableTrackingCondition
       
    38 
       
    39         AuthFormSessionTimeout 30
       
    40         AuthFormSessionCookies On
       
    41         AuthFormSessionAutoRefresh -1
       
    42         AuthFormTrackingLifetime 30
       
    43 
       
    44         AuthFormPageLogin index.php
       
    45         AuthFormPageExpired /session_expired.html
       
    46         AuthFormLastPageKey go_back_to
       
    47         #AuthFormPageAutoRefresh
       
    48         #AuthFormPageNotAllowed
       
    49 
       
    50         #Require valid-user
       
    51         Require group 0 1
       
    52 </Directory>
       
    53 
       
    54 <Directory "/var/www/private/public">
       
    55 	AuthFormPageNotAllowed /paying_members_only.html
       
    56 	AuthFormMySQLTableSIDCondition "`sid`=$sid1 AND `sid_dir`=$sid2 AND (`uid`=$uid OR `signature`='some_signature_public')"
       
    57 	Require group 1 
       
    58 </Directory>
       
    59 <Directory "/var/www/private/private">
       
    60 	AuthFormPageNotAllowed /premium_only.html
       
    61 	Require group 2 
       
    62 </Directory>
       
    63 <Directory <"/var/www/private/admin">
       
    64 	AuthType Basic
       
    65 	AuthName "Administration"
       
    66 	AuthUserFile /var/www/private/passwords
       
    67 	
       
    68 	# Turn off 'mod_auth_form' in this directory,
       
    69 	# giving control to 'mod_auth'.
       
    70 	AuthFormAuthoritative Off
       
    71 	
       
    72 	Allow from 127.0.0.1  # localhost
       
    73 	Deny from all
       
    74 	Order Deny,Allow
       
    75 	Require valid-user
       
    76 </Directory>
       
    77 
       
    78 	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
       
    79 	<Directory "/usr/lib/cgi-bin">
       
    80 		AllowOverride None
       
    81 		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
       
    82 		Order allow,deny
       
    83 		Allow from all
       
    84 	</Directory>
       
    85 
       
    86 	ErrorLog /var/log/apache2/error.log
       
    87 
       
    88 	# Possible values include: debug, info, notice, warn, error, crit,
       
    89 	# alert, emerg.
       
    90 	LogLevel debug
       
    91 
       
    92 	CustomLog /var/log/apache2/access.log combined
       
    93 
       
    94     Alias /doc/ "/usr/share/doc/"
       
    95     <Directory "/usr/share/doc/">
       
    96         Options Indexes MultiViews FollowSymLinks
       
    97         AllowOverride None
       
    98         Order deny,allow
       
    99         Deny from all
       
   100         Allow from 127.0.0.0/255.0.0.0 ::1/128
       
   101     </Directory>
       
   102 # <Directory "/var/www/HTMLrequester/">
       
   103 #        Options Indexes MultiViews FollowSymLinks
       
   104 #        AllowOverride None
       
   105 #        Order deny,allow
       
   106 #        Deny from all
       
   107 #        Allow from 127.0.0.0/255.0.0.0 ::1/128
       
   108 #    </Directory>
       
   109 
       
   110 </VirtualHost>