def METHOD_NAME(
    dutils,
    ssl_dir,
    tmp_dir,
    template,
    config_path,
    nginx_container
):
    reload_nginx(template, config_path, dutils=dutils)
    # Check that container is running
    info = dutils.get_info(NGINX_CONTAINER_NAME)
    state = info['stats']['State']
    assert state['Status'] == 'running'
    config = get_config(config_path)
    # Check that config is correct
    assert config == '\nlimit_req_zone $binary_remote_addr zone=one:10m rate=7r/s;\n\nserver {\n    listen 3009;\n\n    \n\n    proxy_read_timeout 500s;\n    proxy_connect_timeout 500s;\n    proxy_send_timeout 500s;\n\n    error_log /var/log/nginx/error.log warn;\n    client_max_body_size 20m;\n\n    server_name localhost;\n    limit_req zone=one burst=10;\n\n    location / {\n        include uwsgi_params;\n        uwsgi_read_timeout 500s;\n        uwsgi_socket_keepalive on;\n        uwsgi_pass 127.0.0.1:3010;\n    }\n}\n\nserver {\n    listen 80;\n\n    \n\n    error_log /var/log/nginx/error.log warn;\n    client_max_body_size 20m;\n    server_name localhost;\n    limit_req zone=one burst=50;\n\n    location / {\n        root /filestorage;\n    }\n}'   # noqa
    assert 'ssl' not in config
    # Creating fake certificates
    key_path = os.path.join(ssl_dir, 'ssl_key')
    chain_path = os.path.join(ssl_dir, 'ssl_cert')
    Path(key_path).touch()
    Path(chain_path).touch()
    reload_nginx(template, config_path, dutils=dutils)
    # Check that config is correct
    config = get_config(config_path)
    assert config == '\nlimit_req_zone $binary_remote_addr zone=one:10m rate=7r/s;\n\nserver {\n    listen 3009;\n\n    \n    listen 311 ssl;\n    ssl_certificate     /ssl/ssl_cert;\n    ssl_certificate_key /ssl/ssl_key;\n    \n\n    proxy_read_timeout 500s;\n    proxy_connect_timeout 500s;\n    proxy_send_timeout 500s;\n\n    error_log /var/log/nginx/error.log warn;\n    client_max_body_size 20m;\n\n    server_name localhost;\n    limit_req zone=one burst=10;\n\n    location / {\n        include uwsgi_params;\n        uwsgi_read_timeout 500s;\n        uwsgi_socket_keepalive on;\n        uwsgi_pass 127.0.0.1:3010;\n    }\n}\n\nserver {\n    listen 80;\n\n    \n    listen 443 ssl;\n    ssl_certificate     /ssl/ssl_cert;\n    ssl_certificate_key /ssl/ssl_key;\n    \n\n    error_log /var/log/nginx/error.log warn;\n    client_max_body_size 20m;\n    server_name localhost;\n    limit_req zone=one burst=50;\n\n    location / {\n        root /filestorage;\n    }\n}'  # noqa
    assert 'ssl' in config