server {
server_name DOMAIN ZUM PANEL;
listen SERVERIP:8080;
listen [::]:8080 default ipv6only=on;
root /var/www/imscp/gui/public;
index index.php index.html;
location /errors {
alias /var/www/imscp/gui/public/errordocs;
}
error_page 401 /errors/401.html;
error_page 403 /errors/403.html;
error_page 404 /errors/404.html;
error_page 500 /errors/500.html;
error_page 503 /errors/503.html;
location /ispLogos {
root /var/www/imscp/gui/data/persistent;
expires 30d;
}
location ~ ^/themes/(.*)/assets {
root /var/www/imscp/gui;
expires 30d;
}
location ~ ^/(.*)/themes/(.*)/assets {
root /var/www/imscp/gui/plugins;
expires 30d;
}
location / {
try_files $uri $uri/ /plugins.php$is_args$args;
}
location ~ \.php$ {
try_files $uri $uri/ /plugins.php$is_args$args;
include imscp_fastcgi.conf;
}
# SECTION custom BEGIN.
include imscp_pydio.conf;
include imscp_pma.conf;
include imscp_roundcube.conf;
include imscp_rainloop.conf;
# SECTION custom END.
}