目前用Mysql+Linux+Nginx+PHP+阿里云Ecs搭建的Wordpress博客,
但是我的首页显示
403 Forbidden
nginx/1.4.4
但是我输入 xxx.xxx.com/phpmyadmin xxx.xxx.com/wordpress xxx.xxx.com/phpwind的话,
都是能正常访问相应页面的,
现在问题是我想把wordpress设置为首页,我自己弄了一番,还是不成功,求指导!
其中在linux中,文件结构:
alidata
log
server
nginx-1.4.4
rewrite
default.conf
phpwind.conf
wordpress.conf
vhosts
phpwind.conf
default.conf.bak
nginx.conf
www
phpmyadmin
phpwind
wordpress
wp-admin
wp-content
wp-includes
总体的文件结构如上面,alidata是总文件夹。
nginx.conf文件如下:
user www www;
worker_processes 1;
error_log /alidata/log/nginx/error.log crit;
pid /alidata/server/nginx/logs/nginx.pid;
#Specifies the value for maximum file descriptors that can be opened by this process.
worker_rlimit_nofile 65535;
events
{
use epoll;
worker_connections 65535;
}
http {
include mime.types;
default_type application/octet-stream;
#charset gb2312;
server_names_hash_bucket_size 128;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
client_max_body_size 8m;
sendfile on;
tcp_nopush on;
keepalive_timeout 60;
tcp_nodelay on;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 64k;
fastcgi_buffers 4 64k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_write_size 128k;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_types text/plain application/x-javascript text/css application/xml;
gzip_vary on;
#limit_zone crawler $binary_remote_addr 10m;
log_format '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
include /alidata/server/nginx/conf/vhosts/*.conf;
}
vhosts文件下的phpwind.conf内容如下:
server {
listen 80;
server_name localhost;
index index.html index.htm index.php;
root /alidata/www;
location ~ .*\.(php|php5)?$
{
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 1h;
}
include /alidata/server/nginx/conf/rewrite/phpwind.conf;
access_log /alidata/log/nginx/access/access.log;
}
置于其他配置没改,求大神指导