-
Notifications
You must be signed in to change notification settings - Fork 9
/
apache-config
41 lines (33 loc) · 1.5 KB
/
apache-config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<VirtualHost 78.47.227.179:80>
AddDefaultCharset utf-8
ServerAdmin [email protected]
DocumentRoot /var/www/vhosts/paste.debian.net
ServerName paste.debian.net
ServerAlias paste.snow-crash.org
ErrorLog /var/log/apache2/paste.debian.net-error.log
CustomLog /var/log/apache2/paste.debian.net-access.log common
RewriteEngine on
RewriteRule /plain/([0-9]+)$ /paste.pl?plain=$1
RewriteRule /plain/([0-9]+)/$ /paste.pl?plain=$1
RewriteRule /plainh/([0-9a-f]+)$ /paste.pl?plainh=$1
RewriteRule /plainh/([0-9a-f]+)/$ /paste.pl?plainh=$1
RewriteRule /hidden/([0-9a-f]+)$ /paste.pl?hidden=$1 [NC]
RewriteRule /hidden/([0-9a-f]+)/$ /paste.pl?hidden=$1 [NC]
RewriteRule /delete/([0-9a-f]+)$ /paste.pl?delete=$1
RewriteRule /delete/([0-9a-f]+)/$ /paste.pl?delete=$1
RewriteRule /download/([0-9]+)$ /paste.pl?download=$1
RewriteRule /download/([0-9]+)/$ /paste.pl?download=$1
RewriteRule /downloadh/([0-9a-f]+)$ /paste.pl?downloadh=$1
RewriteRule /downloadh/([0-9a-f]+)/$ /paste.pl?downloadh=$1
RewriteRule /([0-9]+)$ /paste.pl?show=$1
RewriteRule /([0-9]+)/$ /paste.pl?show=$1
<IfModule mod_dir.c>
DirectoryIndex paste.pl
</IfModule>
<Directory /var/www/vhosts/paste.debian.net/>
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
</VirtualHost>