Skip to content

Instantly share code, notes, and snippets.

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