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