#author("2020-12-16T09:31:20+00:00","default:src128","src128")
#author("2020-12-18T05:57:56+00:00","default:src128","src128")
&tag(Ubuntu2004/Apache);
*目次 [#bd7a7de2]
#contents
*関連ページ [#cd557910]
*参考情報 [#p73a52ad]
-[[How to Install Apache Web Server on Ubuntu 20.04:https://www.tecmint.com/install-apache-web-server-on-ubuntu-20-04/]]

*インストール [#a86207b7]
-以下のコマンドを実行
 sudo apt install apache2

*設定 [#c871b664]
-デフォルトのUser、Groupはwww-dataなのでとりあえずそこはそのまま。
-ポートの変更。/etc/apache2/ports.confを編集。
 Listen 7777
-ファイウォールも変更しておくこと。
 ufw allow 7777/tcp
-DocumentRootの変更。/etc/apache2/sites-available/000-default.confを編集。
#pre{{
DocumentRoot /home/sora/public_html
<Directory /home/sora/public_html>
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
 </Directory>
}}

*管理 [#a0726c3b]
-再起動
 sudo systemctl restart apache2


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS