.htaccess ErrorDocument 404 not showing up

First, note that restarting httpd is not necessary for .htaccess files. .htaccess files are specifically for people who don’t have root – ie, don’t have access to the httpd server config file, and can’t restart the server. As you’re able to restart the server, you don’t need .htaccess files and can use the main server … Read more

How Can I Download a File from EC2 [closed]

Use scp: scp -i ec2key.pem username@ec2ip:/remote/path/to/file /local/path/to/file where: ec2key.pem is your PEM key username is the username you log in with into your EC2 instance ec2ip is the IP or DNS alias of your EC2 instance /remote/path/to/file is the location where the file is stored on your EC2 instance /local/path/to/file is where you want to … Read more

Find region from within an EC2 instance

That URL (http://169.254.169.254/latest/dynamic/instance-identity/document) doesn’t appear to work anymore. I get a 404 when I tried to use it. I have the following code which seems to work though: EC2_AVAIL_ZONE=`curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone` EC2_REGION=”`echo \”$EC2_AVAIL_ZONE\” | sed ‘s/[a-z]$//’`”

EC2 instance types’s exact network performance?

Bandwidth is tiered by instance size, here’s a comprehensive answer: For t2/m3/c3/c4/r3/i2/d2 instances: t2.nano = ??? (Based on the scaling factors, I’d expect 20-30 MBit/s) t2.micro = ~70 MBit/s (qiita says 63 MBit/s) – t1.micro gets about ~100 Mbit/s t2.small = ~125 MBit/s (t2, qiita says 127 MBit/s, cloudharmony says 125 Mbit/s with spikes to … Read more

Increasing client_max_body_size in Nginx conf on AWS Elastic Beanstalk

There are two methods you can take for this. Unfortunately some work for some EB application types and some work for others. Supported/recommended in AWS documentation For some application types, like Java SE, Go, Node.js, and maybe Ruby (it’s not documented for Ruby, but all the other Nginx platforms seem to support this), Elasticbeanstalk has … Read more

How to see all running Amazon EC2 instances across all regions?

Nov 2021 Edit: AWS has recently launched the Amazon EC2 Global View with initial support for Instances, VPCs, Subnets, Security Groups and Volumes. See the announcement or documentation for more details A non-obvious GUI option is the Tag Editor in the Resource Groups console. Here you can find all instances across all regions, even if … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)