I've just got a new server and want to try some other things. Like Nginx instead of Apache.
So, installed nginx
, got the Welcome page, installed php5-fpm
and download a Wordpress to give a try.
But, I still got a 403 Forbidden
when I try to go to the address...
Here is the conf file :
server {
listen 80;
server_name localhost;
access_log /var/log/nginx/axiol.access.log;
error_log /var/log/nginx/axiol.error.log error;
root /usr/share/nginx/axiol;
location ~ .php$ {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/axiol$fastcgi_script_name;
include fastcgi_params;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_intercept_errors on;
fastcgi_ignore_client_abort off;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
try_files $uri $uri/ /index.php?$args;
}
I already checked the chmod of the axiol
folder.
Any idea ?