server { listen 80; server_name dominio.com; access_log /var/log/nginx/logserv_access.log; error_log /var/log/nginx/logserv_error.log notice; location / { root /var/www/logcon; index index.html index.php; autoindex on; } location ~ \.php$ { root /var/www/logcon; fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_read_timeout 600; include fastcgi_params; fastcgi_pass 127.0.0.1:9000; } }