環境
- Vagrant 1.8.4
- VirtualHost 5.0.26
- CentOS7.0
- Apache2.4.6
###前提・実現したいこと
vagrantの共有フォルダに配置したアプリケーションをドキュメントルートにし、hostsを割り当てたいと思っています。
hostsはvagrant-hostsupdaterを使ってhoge
としています。
http:hoge/
にアクセスして表示をしたいです。
SELINUXは無効にしています。
###発生している問題・エラーメッセージ
バーチャルホストの記述ファイル
// /etc/httpd/conf.d/httpd-vhosts.conf <VirtualHost *:80> ServerAdmin hoge@hoge.net DocumentRoot "/home/vagrant/hoge" ServerName hoge <Directory "/home/vagrant/hoge/"> Require all granted </Directory> </VirtualHost>
エラーログ
// /etc/httpd/logs/error_log AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message [Thu Sep 08 11:26:40.612807 2016] [auth_digest:notice] [pid 4147] AH01757: generating secret for digest authentication ... [Thu Sep 08 11:26:40.613437 2016] [lbmethod_heartbeat:notice] [pid 4147] AH02282: No slotmem from mod_heartmonitor [Thu Sep 08 11:26:40.629831 2016] [mpm_prefork:notice] [pid 4147] AH00163: Apache/2.4.6 (CentOS) PHP/5.6.24 configured -- resuming normal operations [Thu Sep 08 11:26:40.629865 2016] [core:notice] [pid 4147] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
// /etc/httpd/logs/access_log 192.168.33.1 - - [08/Sep/2016:10:24:34 +0900] "GET /favicon.ico HTTP/1.1" 403 213 "http://hoge/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" ::1 - - [08/Sep/2016:10:49:26 +0900] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) PHP/5.6.24 (internal dummy connection)" ::1 - - [08/Sep/2016:10:49:26 +0900] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) PHP/5.6.24 (internal dummy connection)" ::1 - - [08/Sep/2016:10:49:26 +0900] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) PHP/5.6.24 (internal dummy connection)" ::1 - - [08/Sep/2016:10:49:26 +0900] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) PHP/5.6.24 (internal dummy connection)" ::1 - - [08/Sep/2016:10:49:26 +0900] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) PHP/5.6.24 (internal dummy connection)" ::1 - - [08/Sep/2016:10:49:26 +0900] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) PHP/5.6.24 (internal dummy connection)" ::1 - - [08/Sep/2016:11:26:39 +0900] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) PHP/5.6.24 (internal dummy connection)" ::1 - - [08/Sep/2016:11:26:39 +0900] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) PHP/5.6.24 (internal dummy connection)" ::1 - - [08/Sep/2016:11:26:39 +0900] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) PHP/5.6.24 (internal dummy connection)" ::1 - - [08/Sep/2016:11:26:39 +0900] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) PHP/5.6.24 (internal dummy connection)" ::1 - - [08/Sep/2016:11:26:39 +0900] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) PHP/5.6.24 (internal dummy connection)"
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。