/etc/nginx/sites-available/kopano-webapp.conf is in kopano-webapp-nginx 3.4.6+dfsg1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | # Default NGinx server configuration from kopano-webapp-nginx
server {
listen 80;
server_name www.example.com;
root /usr/share/kopano-webapp;
# Redirect all request to https
rewrite ^(.*) https://$host$1 permanent;
}
server {
listen 443;
server_name www.example.com;
root /usr/share/kopano-webapp;
ssl on;
include /etc/kopano/webapp/kopano-webapp-nginx-ssl.conf;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
# Pass PHP scripts to FastCGI server
location ~ \.php$ {
include snippets/fastcgi-php.conf;
# With php-fpm (or other unix sockets):
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
# With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
}
location ^~ /webapp {
alias /usr/share/kopano-webapp;
index index.php;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME $request_filename;
# With php-fpm (or other unix sockets):
# fastcgi_pass 127.0.0.1:9000;
}
}
# Deny access to .htaccess files, if Apache's document root
# concurs with nginx's one.
location ~ /\.ht {
deny all;
}
}
# vim: autoindent ts=4 sw=4 expandtab softtabstop=4 ft=conf
|