Skip to content

Phanix's Blog

Menu
  • About Me / 關於我

Tag: apache2

Letsencrypt 設定讓 apache2 通過 ssl labs 安全測試 A+

No Comments
| 學習工作, 工作

紀錄一下 ~$ sudo more /etc/letsencrypt/options-ssl-apache.conf # 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 […]

Read More »

Apache redirects specific site requests to the other URL

No Comments
| 學習工作, 工作

ServerName www.site_name.com RedirectPermanent / http://www.the_other_site.com/ 起因就是因為XX的中國的機器用 domain name 連 http 要另外登記備案… WTF

Read More »

Apache multiple allow origin (enable CORS) for multiple domains

No Comments
| 學習工作, 工作

筆記一下

Read More »

Specify cache expire time in Apache 2.4

No Comments
| 學習工作, 工作

如果有某些檔案會經常更動(比方說一些 batch process 會將結果寫成 .html 檔),又希望每次瀏覽時能夠拿到最新的,而不是瀏覽器內的 cache,那可以在 apache2.4 內這樣設定

Read More »

apache2.4 .htaccess 限定ip address 存取特定url

No Comments
| 學習工作, 工作

紀錄一下

Read More »

apache2 搭配 letsencrypt certbot 關閉 TLS 1.0 與 TLS 1.1

No Comments
| 學習工作, 工作, 網路應用, 電腦網路

因為安全性問題的關係,所以許多瀏覽器已經開始不支援 TLS 1.0 與 TLS 1.1,詳細資訊在這邊可以看到。

Read More »

安裝非預設版號 certbot apache plugin / installing certbot apache plugin with non-default version number

No Comments
| 學習工作, 工作

在大部分情況下安裝預設版本都可以正常無痛完成,但有時候就是會遇到不一樣的情況。

Read More »

AWS Route53 Geo dns with letsencrypt

1 Comment
| 學習工作, 工作

如果是單一一台主機透過 certbot 要用 letsencrypt 這個免費的 ssl 憑證服務的話,其實並不難,以 ubuntu 16.04 搭配 apache 的話會像這樣 而 Amazon AWS 的 Route53 服務有提供很好用的 geo-based dns 功能,簡單來說就是指定來自哪個區域的 reqeust 要由哪個 ip 負責處理。但因此 certbot 預設的 dns challenge 就不能正常運作,導致無法順利申請 letsecrypt 的 ssl 憑證。 實際上只要使用 –dns-route53 參數就可以了。 $ sudo certbot certonly –dns-route53 -d YOUR_DOMAIN_NAME 不過預設 certbot 安裝的時候不會安裝 dns-route53 這個 plugin,所以要自行安裝,而安裝的指令也很簡單,如下。 $ sudo pip install certbot_dns_route53==0.31.0 […]

Read More »

Exclude a url path using apache .htaccess

No Comments
| 學習工作, 工作

用 http auth 時,如果要避開某些 url 不做檢查(例如API)。

Read More »

Apache 2.4 CORS configuration

No Comments
| 學習工作, 工作

如果是 api 的話,可以在程式的部分加上 header,但 resouce file (如圖片等)就得在 apache 裏頭做設定了

Read More »

Posts pagination

1 2 Next

Recent Posts

  • NextJS connect to backend Go api for buffering response
  • NextJs 的 404 handling
  • 強制 nextjs app router 不使用 Static Site Generation (SSG)
  • 將長時間英文 podcast 轉為中文 SRT 字幕檔
  • Letsencrypt 設定讓 apache2 通過 ssl labs 安全測試 A+

Recent Comments

  • Champagne Tasting - 2023/09 - Phanix's Blog on 龍吟 wine dinner
  • 天灰 on 撲克牌遊戲 — 德州撲克 (Texas Hold’em / Texas Poker)
  • 用FFmpeg取代 AWS Media Converter - Phanix's Blog on AWS S3+Media Converter+CloudFront 做 video file streaming CDN服務
  • Mount GCP storage as filesystem, and access with php - Phanix's Blog on php+apache 執行 sudo 命令出現 sudo: no tty present and no askpass program specified
  • Chateau de la Roche-aux-Moines (Nicolas Joly) Tasting - Phanix's Blog on Nicolas Joly 與他的生物動力法哲學

Archives

Tags

.net (29) 2008 (66) 2009 (91) Bordeaux (46) Bourgogne (37) c# (33) Cabernet Sauvignon (41) California (85) Chardonnay (46) dessert wine (26) food (53) France (58) France 法國 (68) French (28) French wine (25) japanese food (32) murmuring (25) photo-taking (46) photographing (48) php (41) Pinot Noir (52) programming (38) red wine (189) Santa Cruz (33) system administration (72) Taiwan (40) traveling (74) USA (125) white wine (120) wine (176) wine tasting (225) 加州 (64) 勃根地 (40) 台灣 (29) 品酒 (223) 攝影 (93) 旅遊 (60) 法國 (33) 波爾多 (38) 甜酒 (28) 白酒 (116) 系統管理 (51) 紅酒 (186) 美國 (100) 義大利 (36)

Categories

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Phanix's Blog 2025 . Powered by WordPress