Created
August 24, 2017 17:20
-
-
Save syoboon77/30d3a662460a540173f619f9530ff2c4 to your computer and use it in GitHub Desktop.
Ubuntu上で作成したhtml.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
# DocumentRootの変更 | |
s/DocumentRoot .*$/DocumentRoot \/vagrant\/myapp\/public/ | |
# VirtualHostディレクティブが閉じられる直前の行に追記 | |
/<\/VirtualHost>/s/^/\n\t<Directory \/vagrant\/myapp\/public\/>\n\t\tOptions FollowSymLinks\n\t\tAllowOverride All\n\t\tRequire all granted\n\t<\/Directory>\n/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment