41 lines
872 B
Plaintext
41 lines
872 B
Plaintext
|
|
server {
|
|
listen 80;
|
|
root /var/www/html;
|
|
index index.php;
|
|
charset utf-8;
|
|
|
|
location = /favicon.ico {
|
|
root /var/www/html/skins/larry/images;
|
|
access_log off;
|
|
log_not_found off;
|
|
expires max;
|
|
}
|
|
|
|
location = /robots.txt {
|
|
allow all;
|
|
access_log off;
|
|
log_not_found off;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ index.php;
|
|
}
|
|
|
|
location ~ /\.ht {
|
|
deny all;
|
|
access_log off;
|
|
log_not_found off;
|
|
}
|
|
|
|
location ~* \.php$ {
|
|
try_files $uri =404;
|
|
include fastcgi_params;
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass roundcube:9000;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_index index.php;
|
|
|
|
}
|
|
}
|