adding dbd config
[eostre.git] / drupal-configs / shopserver / apache2 / sites-enabled / 01-shopserver0p.fsf.org.conf
1 ##################################################################
2 <VirtualHost *:80>
3         ServerName shopserver0p.fsf.org
4         ServerAlias shop.fsf.org
5         ServerAlias store.fsf.org
6         ServerAdmin webmaster@localhost
7         DocumentRoot /var/www/shopserver0p.fsf.org
8         RewriteEngine on
9         RewriteCond %{HTTPS} off
10         RewriteCond %{REQUEST_URI} !=/server-status
11         RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
12         ErrorLog /var/log/apache2/http-shopserver0p.fsf.org.error.log
13         CustomLog /var/log/apache2/http-shopserver0p.fsf.org.access.log combined
14 </VirtualHost>
15 ##################################################################
16
17 ##################################################################
18 <VirtualHost *:443>
19         ServerName shopserver0p.fsf.org
20         ServerAlias shop.fsf.org
21         ServerAlias store.fsf.org
22         DocumentRoot /var/www/shopserver0p.fsf.org
23         RewriteEngine On
24         ServerSignature On
25         AddType image/x-icon .ico
26         SSLEngine on
27
28         include /etc/apache2/sites-available/ssl-common.conf
29
30         SSLCertificateFile /etc/letsencrypt/live/shop.fsf.org/fullchain.pem
31         SSLCertificateKeyFile /etc/letsencrypt/live/shop.fsf.org/privkey.pem
32         SSLCertificateChainFile /etc/letsencrypt/live/shop.fsf.org/chain.pem
33
34
35         <Directory /var/www/shopserver0p.fsf.org>
36                 Options Indexes FollowSymLinks MultiViews
37                 AllowOverride All
38                 Satisfy all
39                 Order deny,allow
40                 allow from all
41                 #allow from 127.0.0.1 74.94.156.210 74.94.156.211
42         </Directory>
43
44         Alias /shop-reports /srv/shop-reports
45         <Directory /shop-reports>
46         AllowOverride none
47         Order deny,allow
48                 allow from all
49         #Deny from all
50         #Allow from 127.0.0.1 74.94.156.210 74.94.156.211
51         </Directory>
52
53         <Files sales-reports.csv>
54         Order deny,allow
55         Deny from all
56         Allow from 127.0.0.1 74.94.156.210 74.94.156.211 209.51.188.193
57         </Files>
58
59         <Files stock-report.csv>
60         Order deny,allow
61         Deny from all
62         Allow from 127.0.0.1 74.94.156.210 74.94.156.211
63         </Files>
64
65         Include /etc/apache2/sites-available/shop.fsf.org-common
66
67
68         ErrorDocument 403 /403.html
69
70         LogFormat "%{X-Forwarded-for}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" cached
71
72         ErrorLog /var/log/apache2/http-shopserver0p.fsf.org.error.log
73         CustomLog /var/log/apache2/http-shopserver0p.fsf.org.access.log combined
74
75 </VirtualHost>
76 ##################################################################