ichinose9372 / 42-webserv

c++でnginxを作る課題
2 stars 0 forks source link

autoindexをnginxの仕様に合わせる #121

Open snemoto-42 opened 7 months ago

snemoto-42 commented 7 months ago

・nginxの仕様として、indexに指定されたファイルを返すが、指定されたファイルがない場合、 autoindex on : ディレクトリの中身一覧を返す autoindex off : 403エラー(権限が無効です)を返す 指定されたファイルの有無を確認してautoindexを起動するにようにする

・別の案として、全てのlocationのautoindex onにして、「そういう仕様にしました」とディフェンス

・confにてlocation pathとlocation rootが一致している必要があるが、nginxの仕様と見比べてみる

・autoindexのためのGooglTestを追加する(confを複数用意するなら、Run make make ./webserv configrations/default.confを追加)