Skip to content

Phanix's Blog

Menu
  • About Me / 關於我

Tag: apache2

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 »

Installing apache, mysql, php 7.0, php-apcu and Phalcon framework on Centos 7

No Comments
| 學習工作, 工作

紀錄一下。被權限設定浪費不少時間 =_=

Read More »

Posts navigation

1 2 Next

Recent Posts

  • Print date time with ms in PHP, which is faster?
  • Backup mongodb to GCP storage with crontab
  • Apache redirects specific site requests to the other URL
  • Apache multiple allow origin (enable CORS) for multiple domains
  • Google Calendar 行事曆加行程 link

Recent Comments

  • 天灰 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 與他的生物動力法哲學
  • 安裝非預設版號 certbot apache plugin / installing certbot apache plugin with non-default version number - Phanix's Blog on AWS Route53 Geo dns with letsencrypt

Archives

Tags

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

Categories

Meta

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

Phanix's Blog 2023 . Powered by WordPress