I'm on CentOS 7, EasyApache 4. I have some .htaccess rewrites that look like:
RewriteRule ^slug/(.*)$ http://mybucket.s3-website-us-east-1.amazonaws.com/slug/$1? [P,L]
in order to rewrite requests for static files to my s3 bucket. This works fine, until I reboot the server, then it stops working. Apache is running, and the website loads, but all requests to files at /slug get 404s. But, if I then manually restart apache, it starts working again and the images load. I'm using the [P] tag so that all files are under the SSL certificate on my local server.
Any idea what might be going on here? Even if you have a hint for how to begin troubleshooting this, that would help me a lot. Thanks!