|
CKAN data.gov.au
|
1 |
<VirtualHost 127.0.0.1:8080> |
|
|
2 |
ServerAdmin webmaster@localhost |
|
|
3 |
|
|
|
4 |
ServerName data.gov.au |
|
|
5 |
ServerAlias www.data.gov.au, opendata.linkdigital.com.au |
|
|
6 |
|
|
|
7 |
|
|
|
8 |
#allow access to local static content eg. logos |
|
|
9 |
Alias /index.html /var/www/index.html |
|
|
10 |
Alias /logos /var/www/logos |
|
|
11 |
Alias /tools /var/www/tools.shtml |
|
|
12 |
Alias /opendata /var/www/opendata.shtml |
|
|
13 |
Alias /opengov /var/www/opengov.shtml |
|
|
14 |
|
|
|
15 |
DocumentRoot /var/www |
|
|
16 |
<IfModule mod_expires.c> |
|
|
17 |
<FilesMatch "\.(jpe?g|png|gif|js|css)$"> |
|
|
18 |
ExpiresActive On |
|
|
19 |
ExpiresDefault "access plus 1 week" |
|
|
20 |
</FilesMatch> |
|
|
21 |
</IfModule> |
|
CKAN data.gov.au
|
22 |
|
|
|
23 |
<Directory /> |
|
|
24 |
Options FollowSymLinks |
|
|
25 |
AllowOverride None |
|
|
26 |
</Directory> |
|
CKAN data.gov.au
|
27 |
|
|
|
28 |
<Directory /var/www/> |
|
|
29 |
Options -Indexes -FollowSymLinks -MultiViews +Includes |
|
|
30 |
AllowOverride None |
|
|
31 |
|
|
|
32 |
Order allow,deny |
|
|
33 |
allow from all |
|
|
34 |
|
|
|
35 |
AddType text/html .shtml |
|
|
36 |
AddOutputFilter INCLUDES .shtml |
|
|
37 |
</Directory> |
|
|
38 |
|
|
|
39 |
ErrorLog ${APACHE_LOG_DIR}/error.log |
|
|
40 |
|
|
|
41 |
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg. |
|
|
42 |
LogLevel warn |
|
|
43 |
|
|
|
44 |
CustomLog ${APACHE_LOG_DIR}/access.log varnishcombined |
|
|
45 |
RewriteEngine On |
|
|
46 |
|
|
|
47 |
RewriteMap lc int:tolower |
|
|
48 |
|
|
|
49 |
# RewriteRule ^/apps/antenna-mate/?$ http://antennamate.com/ [PT] |
|
|
50 |
# RewriteRule ^/apps/postcode-finder/?$ http://www.aus-emaps.com/postcode_finder.php [PT] |
|
|
51 |
# RewriteRule ^/apps/the-australian-cost-of-living-heatmap/?$ http://www.creditcardcompare.com.au/tools/cost-of-living-heatmap/ [PT] |
|
|
52 |
RewriteRule ^/catalogues/?$ /organization [PT] |
|
|
53 |
RewriteRule ^/dataset/“cycling-in-new-south-wales-what-the-data-tells-us”-and-related-data/? /dataset/2809cycling-in-new-south-wales-what-the-data-tells-us2809-and-related-data [PT] |
|
|
54 |
RewriteRule ^/dataset/apvma-pubcris-dataset-for-registered-agricultural-and-veterinary-chemical-products-and-approved-actives/? /dataset/apvma-pubcris-dataset-for-registered-agricultural-and-veterinary-chemical-products-and-approved-acti [PT] |
|
|
55 |
RewriteRule ^/dataset_category/business/?$ /group/business [PT] |
|
|
56 |
RewriteRule ^/dataset_category/community/?$ /group/community [PT] |
|
|
57 |
RewriteRule ^/dataset_category/geography/?$ /group/geography [PT] |
|
|
58 |
RewriteRule ^/dataset_category/government/?$ /group/government [PT] |
|
|
59 |
RewriteRule ^/dataset_category/health/?$ /group/health [PT] |
|
|
60 |
RewriteRule ^/dataset_category/?$ /group [PT] |
|
|
61 |
RewriteRule ^/feed/?$ /feeds/dataset.atom [PT] |
|
|
62 |
RewriteRule ^/jurisdiction/australian-capital-territory/?$ /dataset?q=act [PT] |
|
|
63 |
RewriteRule ^/jurisdiction/new-south-wales/?$ /dataset?q=new+south+wales [PT] |
|
|
64 |
RewriteRule ^/jurisdiction/queensland/?$ /dataset?q=queensland [PT] |
|
|
65 |
RewriteRule ^/jurisdiction/south-australia/?$ /dataset?q=south+australia [PT] |
|
|
66 |
RewriteRule ^/jurisdiction/victoria/?$ /dataset?q=victoria [PT] |
|
|
67 |
RewriteRule ^/jurisdiction/western-australia/?$ /dataset?q=western+australia [PT] |
|
|
68 |
RewriteRule ^/jurisdiction/?$ /dataset [PT] |
|
|
69 |
|
|
|
70 |
# RewriteCond %{QUERY_STRING} ^category=([a-z]+) |
|
|
71 |
# RewriteRule ^/data/?$ /group/${lc:%1}? [PT] |
|
|
72 |
|
|
|
73 |
# RewriteCond %{QUERY_STRING} ^format=Shapefile |
|
|
74 |
# RewriteRule ^/data/?$ /dataset?res_format=shp [PT] |
|
|
75 |
|
|
|
76 |
RewriteRule ^/data/?$ /dataset? [PT] |
|
|
77 |
|
|
|
78 |
RewriteCond %{QUERY_STRING} ^s=(.*) |
|
|
79 |
RewriteRule ^/ /dataset?q=%1 [PT] |
|
|
80 |
|
|
|
81 |
|
|
|
82 |
FilterDeclare OPENDATA |
|
|
83 |
FilterProvider OPENDATA SUBSTITUTE resp=Content-Type $text/ |
|
|
84 |
FilterProvider OPENDATA SUBSTITUTE resp=Content-Type $/javascript |
|
|
85 |
FilterProvider OPENDATA SUBSTITUTE resp=Content-Type $/json |
|
|
86 |
FilterProvider OPENDATA SUBSTITUTE resp=Content-Type $/xml |
|
|
87 |
FilterChain OPENDATA |
|
|
88 |
Substitute "s#//opendata.linkdigital.com.au#//data.gov.au#" |
|
|
89 |
|
|
|
90 |
WSGIScriptAlias / /var/lib/ckan/dga/pyenv/bin/dga.py |
|
|
91 |
WSGIPassAuthorization On |
|
|
92 |
|
|
|
93 |
ErrorLog /var/log/apache2/ckandga.error.log |
|
|
94 |
CustomLog /var/log/apache2/ckandga.custom.log combined |
|
|
95 |
</VirtualHost> |
|
|
96 |
|