RailsCasts Pro episodes are now free!

Learn more or hide this

Panggi Libersa Jasri Akadol's Profile

GitHub User: panggi

Site: http://opensecuritylab.org

Comments by Panggi Libersa Jasri Akadol

Avatar

Restarting nginx: nginx: [emerg] unknown directive "server" in /etc/nginx/nginx.conf:10
nginx: configuration file /etc/nginx/nginx.conf test failed

About this error, i found it because of my fault.. i should insert the SSL configuration inside nginx.conf in my rails config folder.

And i still have this error:

Error 102 (net::ERR_CONNECTION_REFUSED): The server refused the connection.

Avatar

I did all the instructions and successfully deployed, but then when i tried to access it, it was automatically redirect my browser to https://IP.

This is what Chrome said:

Error 102 (net::ERR_CONNECTION_REFUSED): The server refused the connection.

I though it was because i forced the SSL in production.rb and then i set it to false and redeployed. But nothing changed!

After that i set the ssl force back and try to install SSL using the instruction in http://railscasts.com/episodes/357-adding-ssl, and i had a problem in nginx when i tried to install:

Restarting nginx: nginx: [emerg] unknown directive "server" in /etc/nginx/nginx.conf:10
nginx: configuration file /etc/nginx/nginx.conf test failed

Can anyone give me a solution for this? Thanks in advance :)

Avatar

Kevin, the last time i checked, AMI for eu-west-1 for Ubuntu 12.04 LTS 64 bit is ami-e1e8d395 and 32 bit is ami-e7e8d393 :)

Avatar

AMI code for a kind of Image is different in each region, for example:

Ubuntu 12.04 LTS

Singapore:
64 bit: ami-a4ca8df6, 32 bit: ami-a6ca8df4

Northern Virginia:
64 bit: ami-a29943cb, 32 bit: ami-ac9943c5

I got the codes when i try to launch a new instance from AWS console and copy it. But maybe there's a better way to get it :)

Avatar

Ryan, can you make a tutorial for using "TOTP: Time-Based One-Time Password Algorithm" or "Multi-Factor Authentication" that compatible with Google Authenticator like in Google and AWS?? it will be great to add more security :)

Avatar

when the first time using Asset Pipeline in production mode and get the "We're Sorry, but something went wrong." i thought that i was alone.. and then Google saved me :))

Avatar

in Linux,instead of using:
cat ~/.ssh/id_rsa.pub | ssh user@host 'cat >> ~/.ssh/authorized_keys'

i prefer to use:
ssh-copy-id user@host