Alias /cool-path /home/foo/real-path
<Directory /home/foo/real-path>
Require all granted
</Directory>
yumレポジトリ用のapache confのシンプルな例
これをCentOSなら、/etc/httpd/conf.d以下に配置する。
これを参照するrepoファイルの例は、こんな感じ。青字の部分を必要に応じて修正。
<VirtualHost *:80>
Options Indexes FollowSymLinks
Alias /my-repos /work/repos
<Directory /work/repos>
Require all granted
</Directory>
</VirtualHost>
これを参照するrepoファイルの例は、こんな感じ。青字の部分を必要に応じて修正。
[repo-name] name=Example repository baseurl=http://192.168.5.10/my-repos enabled=1 gpgcheck=0
登録:
投稿 (Atom)