videopdf/etc/apache2/pdfview.conf

39 lines
1.2 KiB
Plaintext

<VirtualHost *:80>
ServerHostname pdf.0x2620.org
LogLevel warn
ErrorLog /var/log/apache2/pdfvideo.org_error.log
CustomLog /var/log/apache2/pdfvideo.org_access.log combined
<Location />
Options -Indexes
</Location>
<Directory /srv/pdfvideo>
Order deny,allow
Allow from all
</Directory>
<Location />
XSendFile on
XSendFileAllowAbove on
</Location>
Alias /.bzr /srv/pdfvideo/.bzr
Alias /static /srv/pdfvideo/static
Alias /robots.txt /srv/pdfvideo/pdfvideo/static/robots.txt
Alias /favicon.ico /srv/pdfvideo/pdfvideo/static/favicon.ico
Alias /data /srv/pdfvideo/data
Alias /admin/media /srv/pdfvideo/src/django/django/contrib/admin/media
Alias /static/js/jquery.js /srv/pdfvideo/src/django/django/contrib/admin/media/js/jquery.min.js
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/favicon.ico
RewriteCond %{REQUEST_URI} !^/robots.txt
RewriteCond %{REQUEST_URI} !^/.bzr
RewriteCond %{REQUEST_URI} !^/static
RewriteCond %{REQUEST_URI} !^/data
RewriteCond %{REQUEST_URI} !^/admin/media
RewriteRule ^/(.*) http://127.0.0.1:2688/$1 [P]
ServerSignature Off
</VirtualHost>