これまでこういったyumリポジトリミラーサーバーを作る場合にApacheを使って構築してきましたが、 Nginxで同じように設定する場合のメモです。 Nginxの設定 /etc/nginx/nginx.confにautoindex on;を追加します。 例 server { listen 80; server_name repo.example.com; location / { root /var/www/html/; autoindex on; autoindex_localtime on; } } 表示結果 このように表示されます。 Apacheの場合 ちなみにApacheの場合 <Directory "/var/www/html/"> Options Indexes FollowSymLinks </Directory> 参考 HttpAutoindexModule http://
![Nginxでyumリポジトリサーバーを作る時 - tsunokawaのはてなダイアリー](https://cdn-ak-scissors.b.st-hatena.com/image/square/1d6088b852ccbe1ea4465516f12b4e0388c7ab82/height=288;version=1;width=512/http%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Ft%2Ftsunokawa%2F20140617%2F20140617113818.png)