teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

vhost\.confについて追記致しました。

2017/04/20 10:59

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -41,4 +41,33 @@
41
41
  https://www.example.com/test/
42
42
  ※testディレクトリは存在します
43
43
 
44
- Indexesが有効になってると、ディレクトリ内の一覧が表示されるはずですが、403エラー Forbiddenになってしまいます。
44
+ Indexesが有効になってると、ディレクトリ内の一覧が表示されるはずですが、403エラー Forbiddenになってしまいます。
45
+
46
+ ###その他のconfについて
47
+
48
+ vhost.confにて80ポートの設定はしております。
49
+ こちらでは、Optionsディレクティブを設定していますが、
50
+ VirtualHostコンテナ内なので、80番ポートのみ反映されると認識ですが、これが間違いなのでしょうか?
51
+ ```
52
+ <VirtualHost *:80>
53
+ ServerAdmin example@example.com
54
+ DocumentRoot /var/www/html
55
+ ServerName example.com:80
56
+ ServerAlias www.example.com
57
+ ErrorLog logs/error_log
58
+ CustomLog logs/access_log combined
59
+ <Directory "/var/www/html">
60
+ Options FollowSymLinks ExecCGI
61
+ AllowOverride All
62
+ Order allow,deny
63
+ Allow from all
64
+ </Directory>
65
+ ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
66
+ <Directory "/var/www/cgi-bin">
67
+ AllowOverride All
68
+ Options FollowSymLinks ExecCGI
69
+ Order allow,deny
70
+ Allow from all
71
+ </Directory>
72
+ </VirtualHost>
73
+ ```