AWS instancega ühenduse saamine: erinevus redaktsioonide vahel
Mine navigeerimisribale
Mine otsikasti
Resümee puudub |
Resümee puudub |
||
| 48. rida: | 48. rida: | ||
* edit existing security groups: click on them, in the panel below add rule for https (tcp and port 443) | * edit existing security groups: click on them, in the panel below add rule for https (tcp and port 443) | ||
* then follow | * then follow https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-14-04 | ||
* | * you may need to additionally do | ||
/etc/apache2$ sudo cp mods-available/socache_shmcb.load mods-enabled/ | /etc/apache2$ sudo cp mods-available/socache_shmcb.load mods-enabled/ | ||
* then test https | |||
* then follow http://eid.eesti.ee/index.php/Kasutaja_tuvastamine_veebis for specific modifications for id-card | |||
* and then restart apache again | * and then restart apache again | ||
</pre> | </pre> | ||
Redaktsioon: 18. november 2015, kell 09:10
Toorik korrastamiseks:
https://education.github.com/pack https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html ubuntu@ec2-52-28-43-138.eu-central-1.compute.amazonaws.com Get the ID of the instance: mul i-58fc59e4 Get public dns: ec2-52-28-43-138.eu-central-1.compute.amazonaws.com Get public IP: 52.28.43.138 NB! lihtsalt parooliga sisse ei saagi sudo passwd root https://winscp.net/eng/docs/guide_amazon_ec2 to install apache: sudo apt-get install apache2 do this (unclear if really helps, but does not harm): sudo adduser ubuntu www-data sudo chown -R www-data:www-data /var/www sudo chmod -R g+rw /var/www certainly works: sudo chmod a+rw /var/www sudo chmod a+rw /var/www/html create a test file /var/www/html/a.html to access web server in ec2: management panel: go to security groups edit existing security groups: click on them, in the panel below add rule for http (tcp and port 80) read http://stackoverflow.com/questions/15007742/cannot-connect-to-aws-instance-running-apache official docs is far too complicated: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html Creating https connection: * edit existing security groups: click on them, in the panel below add rule for https (tcp and port 443) * then follow https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-14-04 * you may need to additionally do /etc/apache2$ sudo cp mods-available/socache_shmcb.load mods-enabled/ * then test https * then follow http://eid.eesti.ee/index.php/Kasutaja_tuvastamine_veebis for specific modifications for id-card * and then restart apache again