<VirtualHost *:443>
ServerName mydomain.com
WSGIScriptAlias / /var/www/MyWebsite/MyWebsite.wsgi
<Directory /var/www/MyWebsite/>
Order allow,deny
Allow from all
</Directory>
Alias /static /var/www/MyWebsite/app/static
<Directory /var/www/MyWebsite/app/static/>
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLCertificateFile /etc/letsencrypt/live/mydomain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mydomain.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
curl https://mydomain.com
curl: (28) Failed to connect to mydomain.com port 443 after 9983 ms: Operation timed out
# This file contains important security parameters. If you modify this file
# manually, Certbot will be unable to automatically provide future security
# updates. Instead, Certbot will print and log an error message with a path to
# the up-to-date file that you will need to refer to when manually updating
# this file. Contents are based on https://ssl-config.mozilla.org
SSLEngine on
# Intermediate configuration, tweak to your needs
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
SSLHonorCipherOrder off
SSLSessionTickets off
SSLOptions +StrictRequire
# Add vhost name to log entries:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" vhost_combined
LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
SSLHonorCipherOrder On
Header always set X-Frame-Options SAMEORIGIN
Header always set X-Content-Type-Options nosniff
# Requires Apache >= 2.4
SSLCompression off
SSLUseStapling on
SSLStaplingCache "shmcb:logs/stapling-cache(150000)"
# Requires Apache >= 2.4.11
SSLSessionTickets Off
<VirtualHost *:443>
ServerName mydomain.com
WSGIScriptAlias / /var/www/MyWebsite/MyWebsite.wsgi
<Directory /var/www/MyWebsite/>
Order allow,deny
Allow from all
</Directory>
Alias /static /var/www/MyWebsite/app/static
<Directory /var/www/MyWebsite/app/static/>
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
DocumentRoot /var/www/MyWebsite
ServerName mydomain.com
SSLEngine on
SSLCertificateFile /var/www/MyWebsite/c742471ced49aa7b.crt
SSLCertificateKeyFile /var/www/MyWebsite/c742471ced49aa7b.pem
SSLCertificateChainFile /var/www/MyWebsite/sf_bundle-g2-g1.crt
</VirtualHost>
sudo certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Please enter the domain name(s) you would like on your certificate (comma and/or
space separated) (Enter 'c' to cancel): mydomain.com
Requesting a certificate for mydomain.com
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: mydomain.com
Type: dns
Detail: DNS problem: looking up A for mydomain.com: DNSSEC: RRSIGs Missing; DNS problem: looking up AAAA for mydomain.com: DNSSEC: RRSIGs Missing
Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
def find_stats(df_segment):
comtraders2 = df_segment
print('Case 1:', comtraders2)
df_segment = df_segment + 1
print('Case 2:', comtraders2)
return df_segment is comtraders2, df_segment
comtraders = 0
print('Initial:', comtraders)
result, df_segment = find_stats(comtraders)
print('Result 1:', result)
print('Result 2:', df_segment is comtraders)