Hi sebastian since you're so kind, I try to take advantage of your expertise.
This is my .conf
Code:
server {
listen 80;
server_name www.mysite.it mysite.it;
access_log /var/log/nginx/it.mysite.www.log;
error_log /var/log/nginx/err_it.mysite.www.log;
root /store1/www/it.mysite.www/doc_root;
index index.html index.htm index.php;
#
# Setup Expire
#
location ~* \.(jpg|jpeg|gif|css|png|js|ico)$ {
root /store1/www/it.mysite.www/doc_root;
access_log off;
expires 30d;
}
#
# Inizio Direttive per vBulletin/vBSEO
#
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root/vbseo.php;
include fastcgi_params;
}
location / {
rewrite (sitemap_.*\.xml\.gz) /vbseo.php?vbseourl=vbseo_sitemap/vbseo_getsitemap.php&sitemap=$1 last;
try_files $uri $uri/ /vbseo.php?$args;
}
location /vbseo/(includes|resources/html|resources/xml)/ {
allow 127.0.0.1;
deny all;
}
location ~ /admincp/
{
index index.php index.html;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
if ($uri ~ \.php)
{
fastcgi_pass 127.0.0.1:9000;
}
break;
}
# --- fine
}