]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/taginfo/templates/default/apache.erb
Use sudo to run passenger-config when restarting taginfo
[chef.git] / cookbooks / taginfo / templates / default / apache.erb
index 6c700972c748e25bb15b0ae9a3c091acec40f3ac..288b13ff1c6f991358dc439cbd2edc4c7f7550ca 100644 (file)
 
         CacheEnable disk /api
         CacheEnable disk /embed
+        CacheStaleOnError off
+
+        <Location /api>
+                Header setifempty Access-Control-Allow-Origin *
+        </Location>
 </VirtualHost>
 <% end -%>
+
+<Directory <%= @directory %>>
+        Require all granted
+</Directory>