nginx配置CI框架后,出现Access denied如何解决

梦梦阁 发布于 2014/06/16 14:28
阅读 3K+
收藏 0

这个是我配置的代码 nginx.conf,但是我一运行的时候,就会出现Access denied,这个到底是什么原因啊,我找不到解决的方法了,请求大神帮忙

server
        {
                listen 80;
                server_name 222.73.247.224;
		index index.html index.htm index.php;
		root /home/wwwroot/EA;
		try_files $uri $uri/ /index.php?$uri&$args;
	        location / {
                	if (-e $request_filename) {
                                break;
                        }
                       	if (!-e $request_filename) {
                                rewrite ^/(.*)$ /index.php/$1 last;
                        }
		}

		location ~ ^(.+\.php)(.*)$ {
			include fastcgi_params;
			root /home/wwwroot/EA;
			fastcgi_pass unix:/tmp/php-cgi.sock;
			fastcgi_index index.php;
			fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
			fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
			fastcgi_param PATH_INFO $fastcgi_path_info;
			fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;	
		}

		location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
			expires      30d;
		}

		location ~ .*\.(js|css|style|images)?$ {
			expires      12h;
		}

		access_log  /home/wwwlogs/access.log  access;
        }
加载中
0
ruiorz
ruiorz
chown -R www:www /home/wwwroot
ruiorz
ruiorz
说明你的权限有问题
梦梦阁
梦梦阁
我输入命令:ls -l /home/wwwroot drwxr-xr-x 11 root root 4096 这个说明了什么啊
0
mickelfeng
mickelfeng
权限看看
梦梦阁
梦梦阁
drwxr-xr-x 11 root root 4096
0
mickelfeng
mickelfeng
chown -R www:www /home/wwwroot
返回顶部
顶部