Amazon Linux 2023 の httpd のVertualHost (WordPress)設定

WordPress用のhttpdのconfファイルを追加

$sudo vi /etc/httpd/conf.d/wordpress.conf

wordpress.conf に追記

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/wordpress
    ServerName your-domain.com

    <Directory /var/www/wordpress>
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog /var/log/httpd/wordpress-error.log
    CustomLog /var/log/httpd/wordpress-access.log combined
</VirtualHost>

httpd の再起動

$sudo systemctl restart httpd
This entry was posted in Linux, WordPress, 技術情報. Bookmark the permalink.

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です