configs/apache.conf
changeset 70 4aee8dec908d
parent 69 342819c70918
child 73 e63ab2989a8d
equal deleted inserted replaced
69:342819c70918 70:4aee8dec908d
     1 # -> /etc/apache2/conf.d
     1 # -> /etc/apache2/conf.d
       
     2 
     2 
     3 
     3 # The directory where the files are stored,
     4 # The directory where the files are stored,
     4 # it needs to be writable by the web server user (wwwrun, www-data,
     5 # it needs to be writable by the web server user (wwwrun, www-data,
     5 # who ever)
     6 # who ever)
     6 # SentEnv may go into the <Directory>...</Directory>
     7 # SentEnv may go into the <Directory>...</Directory>
     7 SetEnv ONCE_VAR /var/lib/once/
     8 SetEnv ONCE_VAR /var/lib/once/
       
     9 
       
    10 
     8 # Action may go into <Location>...</Location>
    11 # Action may go into <Location>...</Location>
     9 Action once-handler /once-handler/once.pl virtual
    12 Action once-handler /once-handler/once.cgi virtual
    10 
    13 
    11 # Order of location blocks matters!
    14 # Order of location blocks matters!
    12 <Location "/once">
    15 <Location "/once">
    13 	SetHandler once-handler
    16 	SetHandler once-handler
       
    17 </Location>
       
    18 <Location "/once/public">
       
    19 	SetHandler none
    14 </Location>
    20 </Location>
    15 
    21 
    16 #<Location "/once/d">
    22 #<Location "/once/d">
    17 #	SetHandler once-download-handler
    23 #	SetHandler once-download-handler
    18 #	Action once-download-handler /once-handler/download.pl virtual
    24 #	Action once-download-handler /once-handler/download.pl virtual
    19 #</Location>
    25 #</Location>
    20 
    26 
       
    27 Alias /once/public 	   /usr/local/lib/once/public
       
    28 <Directory "/usr/local/lib/once/public">
       
    29 	Require all granted
       
    30 	Allow from all
       
    31 </Directory>
       
    32 
       
    33 
    21 ScriptAlias /once-handler/ /usr/local/lib/once/
    34 ScriptAlias /once-handler/ /usr/local/lib/once/
    22 
       
    23 <Directory "/usr/local/lib/once">
    35 <Directory "/usr/local/lib/once">
    24 	Require all granted
    36 	Require all granted
    25 	Allow from all
    37 	Allow from all
    26 	Options ExecCGI FollowSymlinks
    38 	Options ExecCGI FollowSymlinks
    27 </Directory>
    39 </Directory>