English 中文(简体)
我的想象力是否正确?
原标题:is my nginx config correct?
  • 时间:2012-04-24 15:56:40
  •  标签:
  • nginx

hi im trying to run my Ruby on rails app in nginx using passenger start -e production

但它没有<代码>cache:[HEAD /] 错误。

想猜一下这家独家企业在公众的争 s中实际上拥有一个档案,这个问题可能很容易回答,如果是前往www.tock.com,就会在互联网上打上一个活页:

  server {
         listen 80;
         server_name www.tock.com;
         passenger_enabled on;
         root /home/led/Aptana Studio 3 Workspace/djors/public;

        }
问题回答

如果你在网上服务器上点,就在这个场面上,你需要您的航天中心与网站相匹配。 如果是你的生产服务器,那么你需要国家计算机系统记录,把www.tock.com点到你的服务器。

如果这是你的发展或当地机器,你可能不想指定服务器,而这种服务将超出公众的国家安全局的记录。 例如,我把我的所有东西都用在我的当地想象器上,就像以下一样:

服务器——名称:我_app_name. local

一旦获得名字,你就不得不在主机档案中添加“米_app_name. Local DNS记录”。 你的东道方档案现在应当有以下条目。

127.0.0.1 当地东道

127.0.0.1 我的申请书——姓名。

Restart nginx, and you can now goto my_app_name.local in your browser.

你们可以把客车和 n子放在一起,因为你像你一样在当地这样做,如果你想要点名(而不是仅仅打上<条码>旁边的铁路服务器;使用Pow来方便。 个人,一米铁路服务机,但牛肉。





相关问题
nginx behaved differently for different version

I have used docker image nginx:1.18.0-alpine previously and below is the conf. It works as expected app.localhost --> points to the block wit server_name app.* localhost --> points to the other ...

What s limiting my PHP resources?

I m having a problem getting more memory out of PHP. This is the error message: Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 82 bytes) in ... Yet: I ve set ...

what user I should run my nginx or php-fpm processes

Ok. Im little bit confused about those permissions in linux so please people help me out. The trouble is that I dont want to run server as root, so I created another user with sudo privileges so he ...

Nginx 301 redirect inc. set cookie

what I m looking for is the ability for nginx to detect that a url has the query string variable cid. for example www.adomain.com/froggy?cid=12&as=false (query string can be solo or mixed with ...

Nginx raises 404 when using format => js

I upload images to my App using Ajax and an Iframe. In Development everything works like a charm. But in production Nginx suddenly raises a 404 error. When I look into the log, the request never hits ...

nginx errors readv() and recv() failed

I use nginx along with fastcgi. I see a lot of the following errors in the error logs readv() failed (104: Connection reset by peer) while reading upstream and recv() failed (104: Connection ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

热门标签