WSGIDaemonProcess stickynotes2modernpaste user=apache group=apache threads=5 WSGIScriptAlias /stickynotes2modernpaste /usr/share/stickynotes2modernpaste/stickynotes2modernpaste.wsgi WSGISocketPrefix run/wsgi RewriteEngine on RewriteCond %{HTTP_USER_AGENT} ^fpaste\/0\.3.*$ [OR] RewriteCond %{HTTP_USER_AGENT} ^Python\-urllib.*$ RewriteCond %{REQUEST_METHOD} POST RewriteRule ^/$ /stickynotes2modernpaste/$1 [L,PT] RewriteCond %{HTTP_USER_AGENT} ^fpaste\/0\.3.*$ [OR] RewriteCond %{HTTP_USER_AGENT} ^Python\-urllib.*$ RewriteCond %{REQUEST_METHOD} POST RewriteRule ^/(.*)=/$ /stickynotes2modernpaste/$1= [L,PT] RewriteCond %{HTTP_USER_AGENT} ^fpaste\/0\.3.*$ [OR] RewriteCond %{HTTP_USER_AGENT} ^Python\-urllib.*$ RewriteCond %{REQUEST_METHOD} POST RewriteRule ^/(.*)=//$ /stickynotes2modernpaste/$1= [L,PT] # Otherwise, if we're given a URL with a trailing slash, kill it. RewriteRule ^/(.*)=/$ /$1= [R,L] WSGIScriptAlias / /usr/share/modern-paste/modern_paste.wsgi WSGIProcessGroup stickynotes2modernpaste WSGIApplicationGroup %{GLOBAL} WSGIScriptReloading On Order deny,allow Require all granted Require all granted DocumentRoot /usr/share/modern-paste ErrorLog logs/modern-paste-error.log CustomLog logs/modern-paste-access.log combined LogLevel info