実際のディレクトリとは別のディレクトリ名でアクセスしたい場合、仮想ディレクトリの設定を行う。
設定はApacheのhttpd.confで以下の行を追加する。
Alias /images/ “/home/www/images/”
AddDefaultCharset Off
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
■参考
http://www.atmarkit.co.jp/flinux/rensai/apache06/apache06.html
関連するかもしれない記事
- php.iniの置き場所
- Apache 自宅サーバにおけるバーチャルホストの設定
- eclipse -pleiadesプラグインで日本語化
- Apache mod_rewriteをDSOで有効化
- RewriteBaseは重要
他のブログも読む



0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.