Last active
August 23, 2017 16:47
-
-
Save syoboon77/aa4e3574d93353e6f3d9c95f01d574c9 to your computer and use it in GitHub Desktop.
Ubuntuのapache2.confを半自動で編集するsedスクリプト。「まっさらなVPSからFaucet作るまで頑張るトピック」で使用
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# デフォルトの設定ではブラウザからファイル一覧が見えてしまう可能性があるので、見えないよう設定 | |
/<Directory \/var\/www\/>/,/<\/Directory>/s|\(Options[-+ A-Za-z]*\) Indexes\([-+ A-Za-z]*\)|\1\2| | |
# .htaccessファイルを使用できるようにする | |
/<Directory \/var\/www\/>/,/<\/Directory>/s|AllowOverride [A-Za-z]*|AllowOverride All| |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment