Skip to content

Vesta

Notes about Vesta CP https://vestacp.com/

Do not clear PHP session files - Fix manually

crontab -e
#
0 4   * * *   nice find /home/*/tmp -type f -name sess_* -ctime +2 -delete

По умолчанию кладет логи сайтов для nginx и apache в один файл

# Vesta 0.9.8
# /home/admin/conf/web/httpd.conf

    ...
    ServerName domain.com
    ...
    CustomLog /var/log/httpd/domains/domain.com.log combined
    ErrorLog /var/log/httpd/domains/domain.com.error.log
    ...

# /home/admin/conf/web/nginx.conf
server {
    listen      11.22.33.44:80;
    server_name domain.com www.domain.com;
    error_log  /var/log/httpd/domains/domain.com.error.log error;

    location / {
        proxy_pass      http://11.22.33.44:8080;

        location ~* ^.+\.(png|gif|bmp|ico|svg|tif|tiff|css|js|htm|....)$ {

            root           /home/admin/web/domain.com/public_html;
            access_log     /var/log/httpd/domains/domain.com.log combined;
            access_log     /var/log/httpd/domains/domain.com.bytes bytes;
            ...
        }
    }