Kim Walker
asked on
Is it possible to update a file in AWS Elastic Beanstalk without deploying a new version?
I'm attempting to tweak a .htaccess file for an AWS Elastic Beanstalk "application." The only instructions I have been able to find on the AWS support site requires one to zip the files and upload them via the Environment/Running Version/Upload and Deploy interface which appears to restart services after uploading. This takes several minutes.
Is it possible to update just the .htaccess file via FTP without "redeploying"?
My objective is to get Apache to process a .js file as PHP because I have two dynamic javascript documents. I can't find the exact AddHandler code. I've tried the following unsuccessfully.
The reason I have these dynamic javascript documents is to overcome the cross-domain limitations of AJaX.
If you happen to know the correct AddHandler code, that would be just as helpful. Or a way to overcome cross-domain limitations with AJaX would also be helpful.
Is it possible to update just the .htaccess file via FTP without "redeploying"?
My objective is to get Apache to process a .js file as PHP because I have two dynamic javascript documents. I can't find the exact AddHandler code. I've tried the following unsuccessfully.
AddHandler x-httpd-php5 .js
AddHandler application/x-httpd-php5 .js
The reason I have these dynamic javascript documents is to overcome the cross-domain limitations of AJaX.
If you happen to know the correct AddHandler code, that would be just as helpful. Or a way to overcome cross-domain limitations with AJaX would also be helpful.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
For the record, my final .htaccess code for AWS Elastic Beanstalk is:
Options +ExecCGI
AddHandler php5-script .js
I still haven't determined if there is a way to update individual files in AWS Beanstalk without uploading the entire site.
ASKER
Options +ExecCGI
AddHandler x-httpd-php5 .js
AddHandler x-httpd-php .js
AddHandler application/x-httpd-php5 .js
AddHandler application/x-httpd-php .js
AddHandler php5-script .js