Привет. Установил nginx, сконфигрурировал себе пару хостов.
site-available:
сделал симлинк в sites-enabled:
сгенерировал на них ssl сертификаты:
В конфигах прописал:
server {
listen 101;
server_name work.dev;
root /Users/Greg/WebServer/work.dev/web;
index index.php;
access_log /Users/Greg/WebServer/work.dev/logs/access.log;
error_log /Users/Greg/WebServer/work.dev/logs/error.log;
ssl on;
ssl_certificate ssl/work.dev.crt;
ssl_certificate_key ssl/work.dev.key;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location ~ \.php {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
include /usr/local/etc/nginx/conf.d/php-fpm;
}
и test.dev
server {
listen 100;
server_name test.dev;
root /Users/Greg/WebServer/test.dev/web;
index index.php;
access_log /Users/Greg/WebServer/test.dev/logs/access.log;
error_log /Users/Greg/WebServer/test.dev/logs/error.log;
ssl on;
ssl_certificate ssl/test.dev.crt;
ssl_certificate_key ssl/test.dev.key;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location ~ \.php {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
include /usr/local/etc/nginx/conf.d/php-fpm;
}
добавил в /ect/hosts в виде:
127.0.0.1 work.dev
127.0.0.1 test.dev
Вопрос: как убрать 103 ошибку?
З.Ы. Буду благодарен за мелкие поправки по конфигам/советы