Nginx只允许域名访问网站,禁止使用IP访问80,443端口

#在原本server段末尾添加
server 
{
    listen 80 default;
    listen 443 default_server;
    server_name _;
    return 403;
    ssl_certificate /etc/ssl/cert.pem;
    ssl_certificate_key /etc/ssl/key.pem;
    ssl_session_timeout 5m;#  ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
    ssl_prefer_server_ciphers on;

}

我来吐槽

*

*

已有 11 条评论

  1. HenryRab

    Финансовая независимость - это то, что нужно каждому. https://Rab.fannyberlin.se/Rab

  2. HenryRab

    Финансовая независимость - это то, что нужно каждому. https://Rab.fannyberlin.se/Rab

  3. clourgy

    Where To Purchase Generic Fluoxetine Antidepressant Amex Accepted cheap cialis online canadian pharmacy

  4. Twirway

    stromectol over the counter cialis 5 mg comprime

  5. uniobioli

    canadian pharmacy cialis 20mg Possibly This seat is in the world, the younger generation has never had a rival, how many years have you practiced He never believed which otc male sexual enhancement pills contain viagra cialis it, but the scar on top 10 best male enhancement pills to increase penis size his face had been telling him that it wasn t fake

  6. fonaboibe

    It s better to take one tablet 30-45 minutes before the desired sexual activity priligy without prescription Ask your doctor or pharmacist for more information

  7. Updalay

    except some other countries listed on its website buy cialis online uk

  8. uploact

    Who is recommended to take Cialis 5 mg 36 hour cialis online These side effects usually go away after a few hours as your body adjusts to the drug

  9. Imandabab

    clomid ovulation Premenstrually, she noticed increased irritability, bloating, and breast tenderness occurring no more than 5 days prior to onset of her menses.

  10. infamma

    Follicular activity returned within 70 days of discontinuing in four women and within 90 days in a further seven. tamoxifen gyno before and after

  11. Fiemorp

    placebo trials have shown high cure rates without antimicrobials, it is important to limit antibiotic use. doxycycline how to take Interim guidelines for prevention and control of Staphylococcal infection associated with reduced susceptibility to vancomycin.