A-S, A-S2
#apt –y install apache2 php7.0 libapache2-mod-php7.3 ldap-utils
#scp 192.168.0.4:/etc/ldap/ldap.conf /etc/ldap/
A-M
#cd /etc/ssl
#openssl req –new –out intra.req –newkey rsa:2048 –nodes –keyout intra.key
※CN은 intra.alpha.com
#openssl ca –in intra.req –out intra.crt
A-S
#cd /etc/apache2/
#scp 192.168.0.1:/etc/ssl/intra.* /etc/apache2/
#scp 192.168.0.1:/etc/ssl/alpha/cacert.pem /etc/apache2/
#vim /etc/apache2/sites-available/default-ssl.conf
#echo “Welcome to www.alpha.com” > /var/www/html/index.html
#mkdir /var/www/intra/
#vim /var/www/intra/index.html
#vim /var/www/intra/login.php
A-S2
#scp –r 192.168.0.2:/etc/apache2/* /etc/apache2/
#scp –r 192.168.0.2:/var/www/* /var/www/
#a2enmod ssl
#a2ensite default-ssl.conf
#systemctl restart apache2
A-S
#a2enmod ssl
#a2ensite default-ssl.conf
#systemctl restart apache2
'OS > Linux' 카테고리의 다른 글
[21전국] 1과제 11. VPN 구성 (0) | 2021.11.10 |
---|---|
[21전국] 1과제 10. PROXY 구성 (0) | 2021.11.10 |
[21전국] 1과제 8. MAIL&CHAT (0) | 2021.11.09 |
[21전국] 1과제 7. PAM Authentication (0) | 2021.11.09 |
[21전국] 1과제 6. Kerberos&LDAP (0) | 2021.11.09 |