0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ubuntu20.04にてhtaccessを有効にする設定

Posted at

ubuntuではhttpd.confが無く、/etc/apache2/apache2.confにあるconfファイルの設定になります。

<Directory />
        Options FollowSymLinks
        AllowOverride None
        Require all denied
</Directory>

<Directory /usr/share>
        AllowOverride None
        Require all granted
</Directory>

<Directory /var/www/>
        Options Indexes FollowSymLinks
        #AllowOverride None //ここを下記の様に変更。
        AllowOverride All
        Require all granted
</Directory>

ubuntuの場合apache関連の設定は

/etc/apache2/直下の各ファイルを設定変更が必要。

apache2.conf //今回はここ
conf-enabled
magic           
mods-enabled  
sites-available
conf-available  
envvars       
mods-available  
ports.conf    
sites-enabl

参考サイト:https://www.t3a.jp/blog/infrastructure/apache-htaccess-enable/

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?