LoginSignup
8
8

More than 5 years have passed since last update.

Dropbox/PublicをローカルのApacheで表示する

Last updated at Posted at 2013-01-28
手順
# 1. ~/Sites内に~/Dropbox/Publicへのシンボリックリンクを作る
cd ~/Sites; ln -s ~/Dropbox/Public Dropbox
# 2. ~/Dropboxの権限を 755 にする
chmod 755 ~/Dropbox
# 3. apacheのユーザディレクトリ設定でOptionsにFollowSymLinksを追加する
sudo vim /etc/apache2/users/`whoami`.conf
# 4. apacheを再起動する
sudo apachectl restart

これで ~/Dropbox/Public/index.htmlhttp://localhost/~USERNAME/Dropbox/index.html でアクセスできる。ローカルで素早く確認できるので嬉しい。

8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8