AWS EC2 でワードプレスを構築します。Elastic IP をワードプレス サーバーにバインドするまで、すべてがうまくいきます。問題は、wordpress の静的ファイル リクエストがまだデフォルトの aswec2 パブリック dns であるということですが、css/js なしでページを表示できます。
Web サーバー: apache2;データベース: aws RDS(mysql);php バージョン:5.3.10;私のワードプレス アドレス: www.aoaostudio.com ;
Elastic IP をバインドする前に、aws public にアクセスするためdns:ec2-***-.ap-northeast-1.compute.amazonaws.com
、私の wordpress ブログは問題ありません!
apache2 の設定が間違っている可能性があります。設定ファイルは次のとおりです。
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.aoaostudio.com
DocumentRoot /var/www/wordpress
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/wordpress>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
私の質問はばかかもしれませんが、誰かが助けてくれることを願っています。