GetValkyrie / hosting_s3

Allows Aegir to provision and manage S3 buckets for hosted sites.
1 stars 2 forks source link

Support CSS/JS aggregation #11

Open ergonlogic opened 8 years ago

ergonlogic commented 8 years ago

According to the S3FS module docs, we need to configure proxying in the site vhost in order to support aggregated CSS and JS: http://cgit.drupalcode.org/s3fs/tree/README.txt?h=7.x-2.x#n117

ergonlogic commented 8 years ago

This should essentially look like:

ProxyRequests Off
SSLProxyEngine on
<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>
ProxyPass /s3fs-css/ https://YOUR-BUCKET.s3.amazonaws.com/s3fs-public/
ProxyPassReverse /s3fs-css/ https://YOUR-BUCKET.s3.amazonaws.com/s3fs-public/
ProxyPass /s3fs-js/ https://YOUR-BUCKET.s3.amazonaws.com/s3fs-public/
ProxyPassReverse /s3fs-js/ https://YOUR-BUCKET.s3.amazonaws.com/s3fs-public/