Last active
May 29, 2016 04:40
-
-
Save nishinoshake/1f65692c662a8e1691a4 to your computer and use it in GitHub Desktop.
apacheにバーチャルホスト設定
This file contains hidden or 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
127.0.0.1 local.jp |
This file contains hidden or 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
NameVirtualHost *:80 | |
# | |
# local | |
# | |
<VirtualHost *:80> | |
DocumentRoot "/Users/hoge/" | |
ServerName local.jp | |
</VirtualHost> |
This file contains hidden or 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
VirtualHostは上にあるの設定が優先されるため、 | |
一番上にドキュメントルートのパスを設定したほうがいい。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment