拒绝在Mac上连接Nginx

时间:2017-01-16 16:40:10

标签: macos magento nginx localhost local

我正在尝试在我的Mac上设置Nginx。我正在使用端口8080.在Nginx安装主要Nginx页面之后http://localhost:8080/可以使用。

接下来我试图设置域magento.local(我正在安装magento 1)。问题是地址magento.local浏览器显示错误refused to connect

这是文件magento.conf

server {
 listen       8080;
 root    /Users/denisdubinin/Sites/magento;
 index     index.php;
 server_name  magento.local;
 location / {
   index index.html index.php;
   try_files $uri $uri/ @handler;
   expires 30d;
 }
 location ~ ^/(app|includes|lib|media/downloadable|pkginfo|report/config.xml|var)/ { internal; }
 location /var/export/ { internal; }
 location /. { return 404; }
 location @handler { rewrite / /index.php; }
 location ~* .php/ { rewrite ^(.*.php)/ $1 last; }
 location ~* .php$ {
   if (!-e $request_filename) { rewrite / /index.php last; }
   expires off;
   fastcgi_pass 127.0.0.1:9000;
   fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
   fastcgi_param MAGE_RUN_CODE default;
   fastcgi_param MAGE_RUN_TYPE store;
   include fastcgi_params;
 }
}

在主持人档案中,我放了127.0.0.1 magento.local

在nginx日志文件中我什么都没有:

2017/01/16 18:27:06 [notice] 1111#0: signal process started

0 个答案:

没有答案