configs/apache.conf
changeset 48 aa14588b4232
parent 47 1a695ff398e9
child 51 1700cf720315
equal deleted inserted replaced
47:1a695ff398e9 48:aa14588b4232
     1 # -> /etc/apache2/conf.d
     1 # -> /etc/apache2/conf.d
     2     <Location "/once">
       
     3         SetHandler once-upload-handler
       
     4         Action once-upload-handler /once-handler/upload.pl virtual
       
     5     </Location>
       
     6 
     2 
     7     <Directory "$DOCUMENTROOT/once-handler">
     3 # The directory where the files are stored,
     8         AllowOverride AuthConfig Limit Options
     4 # it needs to be writable by the web server user (wwwrun, www-data,
     9         AddHandler cgi-script .pl
     5 # who ever)
    10     </Directory>
     6 # SentEnv may go into the <Directory>...</Directory>
       
     7 SetEnv ONCE_VAR /var/lib/once/
       
     8 # Action may go into <Location>...</Location>
       
     9 Action once-upload-handler /once-handler/upload.pl virtual
    11 
    10 
    12     <Location "/once/d">
    11 # Order of location blocks matters!
    13         SetHandler once-download-handler
    12 <Location "/once">
    14         Action once-download-handler /once-handler/download.pl virtual
    13 	SetHandler once-upload-handler
    15     </Location>
    14 </Location>
       
    15 
       
    16 #<Location "/once/d">
       
    17 #	SetHandler once-download-handler
       
    18 #	Action once-download-handler /once-handler/download.pl virtual
       
    19 #</Location>
       
    20 
       
    21 ScriptAlias /once-handler/ /usr/local/lib/once/
       
    22 
       
    23 <Directory "/usr/local/lib/once">
       
    24 	Require all granted
       
    25 	Allow from all
       
    26 	Options ExecCGI FollowSymlinks
       
    27 </Directory>