Uncategorised

Install tomcat app behind nginx

Posted on

Tomcat in server.xml: <Connector port=”8080″ protocol=”HTTP/1.1″ address=”localhost” maxThreads=”150″ connectionTimeout=”20000″ proxyName=”my-host-name” proxyPort=”443″ scheme=”https”/> Application should be installed on tomcat at path “my-app” (copy my-app.war to tomcat/webapps)   Nginx in nginx.conf: server { listen 80; server_name my-host-name; return 301 https://my-host-name; } server { listen 443 ssl; server_name my-host-name; ssl_certificate /usr/local/etc/nginx/my-host-name.crt; ssl_certificate_key /usr/local/etc/nginx/my-host-name.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 30m; ssl_ciphers […]

Uncategorised

Installing FreeBSD

Posted on

Общие рекомендации: Режим загрузки в BIOS: LEGACY (aka BIOS) – партиционирование GPT – размер swap = объем RAM – основные партиции: freebsd-boot = 512K freebsd-ufs (/) = 3GB freebsd-swap (= RAM) freebsd-ufs (/var) = 2GB freebsd-ufs (/tmp) = 2GB freebsd-ufs (/usr) = 10GB файловая система UFS Иногда бывает, что система не грузится с диска после […]