Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ProxyPreserveHost On
- ProxyRequests Off
- ServerName mywebsite.com
- ProxyPass / http://127.0.0.1:8080/
- ProxyPassReverse / http://127.0.0.1:8080/
- </VirtualHost>
- <VirtualHost *:80>
- ProxyPreserveHost On
- ProxyRequests Off
- ServerName mywebsite.com
- ProxyPass /static https://s3.eu-west-2.amazonaws.com/
- ProxyPassReverse /static https://s3.eu-west-2.amazonaws.com/
- </VirtualHost>
- <VirtualHost *:80>
- ErrorLog logs/mywebsite.com-error_log
- ProxyPreserveHost Off
- ProxyRequests Off
- ServerName mywebsite.com
- ProxyPass /static https://s3.eu-west-2.amazonaws.com/mywebsite-static-repo
- ProxyPassReverse /static https://s3.eu-west-2.amazonaws.com/mywebsite-static-repo
- </VirtualHost>
- File does not exist: /var/www/html/mywebsite-static-repo
- [warn] proxy: No protocol handler was valid for the URL /static/mywebsite-static-repo/images/some-img.png. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
- SSLProxyEngine on
- SSLProxyVerify none
- SSLProxyCheckPeerCN off
- SSLProxyCheckPeerName off
- SSLProxyCheckPeerExpire off
- ProxyPass /static/ https://<bucket_name>.s3.amazonaws.com/<bucket_name>/
- ProxyPassReverse /static/ https://<bucket_name>.s3.amazonaws.com/<bucket_name>/
- RewriteRule "/static/(.*)$" "https://<bucket_name>.s3.amazonaws.com/$1" [P]
Add Comment
Please, Sign In to add comment