Files
fedora-infra_ansible/roles/modernpaste/files/modern-paste.conf
2017-01-05 20:18:05 +00:00

30 lines
956 B
Plaintext

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]
RewriteRule ^/(.*)=/$ /stickynotes2modernpaste/$1= [L,PT]
WSGIScriptAlias / /usr/share/modern-paste/modern_paste.wsgi
<Directory /usr/share/stickynotes2modernpaste>
WSGIProcessGroup stickynotes2modernpaste
WSGIApplicationGroup %{GLOBAL}
WSGIScriptReloading On
Order deny,allow
Require all granted
</Directory>
<Directory /usr/share/modern-paste>
Require all granted
</Directory>
DocumentRoot /usr/share/modern-paste
ErrorLog logs/modern-paste-error.log
CustomLog logs/modern-paste-access.log combined
LogLevel info