Getting cgi scripts to work in user directory

28-08-20 18:18 simon

a2enmod cgi
sudo apt-get install libmime-lite-perl
sudo apt-get install libcgi-session-perl
 

userdir.conf


    UserDir public_html
    UserDir disabled root

    
        AllowOverride FileInfo AuthConfig Limit Indexes
        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
        Require method GET POST OPTIONS
    
            
            AddHandler cgi-script .cgi .pl
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Require all granted
        


# vim: syntax=apache ts=4 sw=4 sts=4 sr noet