Made program generate SSL

This commit is contained in:
2025-04-15 16:14:04 +02:00
parent 7519f21389
commit a5824f8b51
7 changed files with 39 additions and 56 deletions

View File

@@ -92,7 +92,7 @@ LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule cache_module modules/mod_cache.so
#LoadModule cache_disk_module modules/mod_cache_disk.so
#LoadModule cache_socache_module modules/mod_cache_socache.so
#LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
#LoadModule socache_dbm_module modules/mod_socache_dbm.so
#LoadModule socache_memcache_module modules/mod_socache_memcache.so
#LoadModule socache_redis_module modules/mod_socache_redis.so
@@ -225,22 +225,6 @@ Group www-data
# virtual host being defined.
#
#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. admin@your-domain.com
#
ServerAdmin you@example.com
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName www.example.com
#
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other
@@ -308,14 +292,6 @@ RedirectMatch ^/$ /ipwa
Alias "/var/www/certbot/.well-known/acme-challenge/"
</Location>
<VirtualHost *:443>
ServerName www.example.com
SSLEngine on
SSLCertificateFile /cert/live/<domain>/cert.pem
SSLCertificateKeyFile /cert/live/<domain>/privkey.pem
SSLCertificateChainFile /cert/live/<domain>/chain.pem
</VirtualHost>
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
@@ -569,6 +545,10 @@ Include conf/extra/proxy-html.conf
# starting without SSL on platforms with no /dev/random equivalent
# but a statically compiled-in mod_ssl.
#
SSLSessionCache "shmcb:/usr/local/apache2/logs/ssl_cache(512000)"
SSLSessionCacheTimeout 300
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin