Download presentation
Presentation is loading. Please wait.
Published byMadison Small Modified over 9 years ago
1
/etc/apache2/apache2.conf # Porneste gazduirea virtuala pe http NameVirtualHost 1.2.3.4:80 # Porneste gazduirea virtuala pe https NameVirtualHost 1.2.3.4:443 Listen 80 Listen 443 /etc/apache2/ports.conf
2
ServerName domeniu.ro ServerAlias www.domeniu.ro ServerAdmin admin@domeniu.ro DocumentRoot /var/gazduire/domeniu.ro Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all Alias /soft/ "/soft/“ Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 192.168.1.3 /etc/apache2/sites-available/banca6.ro a2ensite domeniu.ro
3
ServerName mail.domeniu.ro ServerAlias webmail.domeniu.ro ServerAdmin admin@domeniu.ro DocumentRoot /var/gazduire/mail.domeniu.ro Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all SSLEngine On SSLCertificateFile /etc/apache2/ssl/mail.domeniu.crt SSLCertificateKeyFile /etc/apache2/ssl/mail.domeniu.key /etc/apache/sites-available/mail.domeniu.ro a2ensite mail.domeniu.ro
4
Create a file /var/gazduire/domeniu.ro/.htaccess AuthName "Add your login message here.“ AuthType Basic AuthUserFile /var/gazduire/domeniu.ro/.htpasswd require valid-user htpasswd -c.htpasswd name-of-user
5
How To Create Self Signed Certificate openssl genrsa -des3 -out mail.domeniu.ro.key 4096 Remove the passphrase from the key file. mv mail.domeniu.ro.key mail.domeniu.ro.key.secure openssl rsa -in server.key.secure -out server.key Generate the CA file. openssl req -new -x509 -days 365 -key mail.domeniu.ro.key -out mail.domeniu.ro.ca Generate the CSR file openssl req -new -key mail.domeniu.ro.key -out mail.domeniu.ro.csr Generate the CRT file. openssl x509 -req -days 365 -in mail.domeniu.ro.csr -signkey mail.domeniu.ro.key -out mail.domeniu.crt
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.