<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by 莊哲昀 on Medium]]></title>
        <description><![CDATA[Stories by 莊哲昀 on Medium]]></description>
        <link>https://medium.com/@ajmemo?source=rss-b9c75787a36b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NWbUoOrqJU0L4AbuCJreAQ.jpeg</url>
            <title>Stories by 莊哲昀 on Medium</title>
            <link>https://medium.com/@ajmemo?source=rss-b9c75787a36b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 14:16:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ajmemo/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Facebook Workplace的 G-suite 帳號單一登入(Single sign-on，SSO) 設定備忘]]></title>
            <link>https://ajmemo.medium.com/facebook-workplace%E7%9A%84-g-suite-%E5%B8%B3%E8%99%9F%E5%96%AE%E4%B8%80%E7%99%BB%E5%85%A5-single-sign-on-sso-%E8%A8%AD%E5%AE%9A%E5%82%99%E5%BF%98-402d9acc70e5?source=rss-b9c75787a36b------2</link>
            <guid isPermaLink="false">https://medium.com/p/402d9acc70e5</guid>
            <category><![CDATA[sso]]></category>
            <category><![CDATA[g-suite]]></category>
            <category><![CDATA[facebook-workplace]]></category>
            <dc:creator><![CDATA[莊哲昀]]></dc:creator>
            <pubDate>Wed, 09 Dec 2020 11:48:30 GMT</pubDate>
            <atom:updated>2020-12-09T11:48:30.482Z</atom:updated>
            <content:encoded><![CDATA[<p>今天又弄壞了SSO設定，把自己擋在workplace外，只好備忘一下…</p><blockquote>在G-suite後台-&gt;應用程式-&gt;網頁與行動應用程式-&gt;搜尋workplace by facebook-&gt;安裝。</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nGOBzOaD-eiJ16OthoVklw.png" /></figure><p>複製Google提供的憑證資料</p><blockquote>— — -BEGIN CERTIFICATE — — -</blockquote><blockquote>中間一大堆字一起複製</blockquote><blockquote>— — -END CERTIFICATE — — -</blockquote><p>登入Workplace管理員介面，在「帳號安全」頁面的「驗證」分頁設定SSO服務供應商找到「SAML配置」</p><blockquote>憑證資料貼在「SAML 憑證」</blockquote><blockquote>「Audience URL」貼到G-suite裡面的「實體ID」</blockquote><blockquote>「ACS (Assertion Consumer Service) 」貼到G-suite裡面的「ACS網址」</blockquote><p>點選測試SSO，這樣應該就可以用了…大概….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=402d9acc70e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[讓Ubuntu 18.04.1 LTS的Apache 禁止瀏覽網站檔案]]></title>
            <link>https://ajmemo.medium.com/%E8%AE%93ubuntu-18-04-1-lts%E7%9A%84apache-%E7%A6%81%E6%AD%A2%E7%80%8F%E8%A6%BD%E7%B6%B2%E7%AB%99%E6%AA%94%E6%A1%88-470efdba7c67?source=rss-b9c75787a36b------2</link>
            <guid isPermaLink="false">https://medium.com/p/470efdba7c67</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[莊哲昀]]></dc:creator>
            <pubDate>Tue, 28 Aug 2018 05:41:59 GMT</pubDate>
            <atom:updated>2018-08-28T05:41:59.153Z</atom:updated>
            <content:encoded><![CDATA[<p>最近弄了個網站放在AWS的T2 micro 主機，因為網站檔案預設會被整個索引列出，為了防止&lt;del&gt;世界被破壞&lt;/del&gt;避免檔案全部噴出來，只好研究如何把索引功能關閉。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*x5ZUxAwZ_5GMxY8bYlIc8w.png" /><figcaption>網站檔案被index索引功能全都露…</figcaption></figure><p>首先詢問朋友之後他丟了一篇2005年的文章 <a href="http://yblog.org/archive/index.php/5580"><strong>Apache設定限制目錄瀏覽的方法</strong></a><strong>，依樣畫葫蘆之後發現找不到httpd.conf…</strong></p><h4>Ubuntu 18.04.1的Apache2 conf檔案位置</h4><p>後來找到 2009的文章 <a href="https://www.arthurtoday.com/2009/11/ubuntu-httpdcon.html">Ubuntu 的 httpd.conf 設定檔位置</a></p><p>最後發現檔案躲在 /etc/apache2/apache2.conf</p><pre>sudo vim /etc/apache2/apache2.conf</pre><blockquote>找到 &lt;directory /var/www/&gt;的options，隨便按個字或按Insert鍵進入編輯狀態，把Indexes刪除，留下 Options FollowSymLinks，像是下面這樣。</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qkv7kjzrCiXQj4kyuHdR8Q.png" /></figure><p>按Esc，輸入「:wq」，案Enter存檔並離開，再來重開apache 服務。</p><pre>sudo service apache2 restart</pre><h4>Boom!資料夾就不會被看光光了~</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PFPc3U0t7oCn32ABoDQN4A.png" /></figure><pre>這份簡易備忘主要是寫給我自己看，如果這篇有幫助到你記得幫我按幾個拍手。<br><strong>「1下」拍手</strong>：告訴我你讀過了，很好，很棒。<br><strong>「2-10下」拍手</strong>：表示你滑鼠可能有點故障，請記得更換一隻，微軟IE3.0不錯用...<br><strong>「拍超過10下」拍手</strong>：難道這篇真的那麼重要(?)，快點留言跟我說你到底看到了什麼...</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=470efdba7c67" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>