ラベル apache の投稿を表示しています。 すべての投稿を表示
ラベル apache の投稿を表示しています。 すべての投稿を表示

シンプルなapche用公開ディレクトリ設定例

Alias /cool-path /home/foo/real-path

<Directory /home/foo/real-path>
    Require all granted
</Directory>

yumレポジトリ用のapache confのシンプルな例

これをCentOSなら、/etc/httpd/conf.d以下に配置する。
&ltVirtualHost *:80>
  Options Indexes FollowSymLinks
  Alias /my-repos /work/repos
  &ltDirectory /work/repos>
    Require all granted
  &lt/Directory>
&lt/VirtualHost>

これを参照するrepoファイルの例は、こんな感じ。青字の部分を必要に応じて修正。
[repo-name]
name=Example repository
baseurl=http://192.168.5.10/my-repos
enabled=1
gpgcheck=0