How can I make a public HTML folder in Ubuntu?

前端 未结 3 758
北海茫月
北海茫月 2021-02-03 22:51

Simple question, but for some reason I couldn\'t find the exact answer on Google:

I have a fresh Ubuntu install on Slicehost, and would like to make a public directory i

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-03 23:34

    You need to use mod_userdir for Apache, otherwise you need to set up symlinks from /var/www/ or wherever.

    Your permissions issue is because Apache does not have read access to your files. You need to allow read access to www-data (or whatever the user is; distro-specific).

提交回复
热议问题