VirtualBox+apatchでvhostがうまく動かない
992 ワード
VirtualBox内のvhostがうまく動作していない気がする
Vhostの設定を確認する
httpd -S
[root@loca html]# httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server xxxx.co.jp (/etc/httpd/conf.d/_default_vhost.conf:1)
port 80 namevhost xxxx.co.jp (/etc/httpd/conf.d/_default_vhost.conf:1)
port 80 namevhost vmlocal.xxxx.local (/etc/httpd/conf.d/admin.conf:1)
alias vmlocal
port 80 namevhost aaa.vmlocal.xxxx.local (/etc/httpd/conf.vhost.d/vhosts-aaa.conf:2)
port 80 namevhost bbb.vmlocal.xxxx.local (/etc/httpd/conf.vhost.d/vhosts-bbb.conf:2)
port 80 namevhost html.vmlocal.xxxx.local (/etc/httpd/conf.d/html.conf:1)
Syntax OK
httpd -S
[root@loca html]# httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server xxxx.co.jp (/etc/httpd/conf.d/_default_vhost.conf:1)
port 80 namevhost xxxx.co.jp (/etc/httpd/conf.d/_default_vhost.conf:1)
port 80 namevhost vmlocal.xxxx.local (/etc/httpd/conf.d/admin.conf:1)
alias vmlocal
port 80 namevhost aaa.vmlocal.xxxx.local (/etc/httpd/conf.vhost.d/vhosts-aaa.conf:2)
port 80 namevhost bbb.vmlocal.xxxx.local (/etc/httpd/conf.vhost.d/vhosts-bbb.conf:2)
port 80 namevhost html.vmlocal.xxxx.local (/etc/httpd/conf.d/html.conf:1)
Syntax OK
Author And Source
この問題について(VirtualBox+apatchでvhostがうまく動かない), 我々は、より多くの情報をここで見つけました https://qiita.com/sota/items/3daeacac45a8b4c7a63b著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .