Привет.
Сделал 3 хоста. Nginx редиректит все на 127.0.0.1 и не открывает их. Ни по ip ни по имени.
конфиги:
1й
server {
listen 443 ssl;
server_name work.dev www.work.dev;
root /Users/Greg/WebServer/work.dev/www;
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 / {
autoindex on;
}
location ~ /\. { deny all; access_log off; log_not_found off; }
location ~* ^.+\.(bmp|jpg|jpeg|gif|ico|png|css|doc|txt|js|zip|iso|tgz|gz|rar|bz2|7z|xls|exe|pdf|ppt|tar|wav|avi|rtf|mp3|mp4|mov|mpeg|mpg) {
expires 5d;
limit_rate 100M;
if ($http_user_agent ~ FDM|Download) {
limit_rate 50M;
}
}
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;
gzip on;
}
include /usr/local/etc/nginx/conf.d/php-fpm;
}
2й
server {
listen 100;
server_name test.dev;
root /Users/Greg/WebServer/test.dev/web;
index index.php index.html 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 / {
autoindex on;
}
location ~ /\. { deny all; access_log off; log_not_found off; }
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;
}
3й
server {
listen 82;
server_name hiwork.dev www.hiwork.dev;
root /Users/Greg/WebServer/hiwork.dev/www;
index index.php;
access_log /Users/Greg/WebServer/hiwork.dev/logs/access.log;
error_log /Users/Greg/WebServer/hiwork.dev/logs/error.log;
ssl on;
ssl_certificate ssl/hiwork.dev.crt;
ssl_certificate_key ssl/hiwork.dev.key;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
autoindex on;
}
location ~ /\. { deny all; access_log off; log_not_found off; }
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;
}
Как исправить этот трабл и наконец-то начать работать? OS Maveriks