【環境】
VPSサーバー
Ubuntu14.04 LTS
Nginx1.4.6
MySQL 14.14
PHP5.5.9
はじめまして、VPSサーバーの上記環境にWordpressをインストールして、ユーザー名とパスワードを設定しました。
その後、ログインページでユーザー名とパスワードで入ると、「403 Forbidden」と表示がされてしまいます。
URLは「http://mydomain.com/wp-admin/」となっています。
Wordpressのソースはドメインのルート直下にあります。
nginxの設定が怪しいと思うのですが、どこを変更したらいいのか分からず質問させていただきました。
nginx初心者で初歩的な質問かも知れませんが、よろしくお願いします。
/var
└www
└mydomain.com
├public_html
│ └(Wordpressの部分)
└logs
■/etc/nginx/sites-available/mydomain.com
server {
server_name mydomain.com www.mydomain.com;
access_log /var/www/mydomain.com/logs/access.log;
error_log /var/www/mydomain.com/logs/error.log;
root /var/www/mydomain.com/public_html;
index index.html index.htm;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
■/etc/nginx/nginx.conf
user www-data;
worker_processes 1;
pid /run/nginx.pid;
events {
worker_connections 768;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
gzip_disable "msie6";application/xml+rss text/javascript;
include /etc/nginx/conf.d/.conf;
include /etc/nginx/sites-enabled/;
}
■/etc/nginx/sites-available/default
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.html index.htm;
server_name localhost;
location / {
try_files $uri $uri/ =404;
}
}