<legend id='48F9Z'><style id='48F9Z'><dir id='48F9Z'><q id='48F9Z'></q></dir></style></legend>

<small id='48F9Z'></small><noframes id='48F9Z'>

<i id='48F9Z'><tr id='48F9Z'><dt id='48F9Z'><q id='48F9Z'><span id='48F9Z'><b id='48F9Z'><form id='48F9Z'><ins id='48F9Z'></ins><ul id='48F9Z'></ul><sub id='48F9Z'></sub></form><legend id='48F9Z'></legend><bdo id='48F9Z'><pre id='48F9Z'><center id='48F9Z'></center></pre></bdo></b><th id='48F9Z'></th></span></q></dt></tr></i><div id='48F9Z'><tfoot id='48F9Z'></tfoot><dl id='48F9Z'><fieldset id='48F9Z'></fieldset></dl></div>
      1. <tfoot id='48F9Z'></tfoot>
          <bdo id='48F9Z'></bdo><ul id='48F9Z'></ul>

        Magento 1.8 的 Nginx 配置

        时间:2023-10-08
        • <small id='KRPdn'></small><noframes id='KRPdn'>

          <legend id='KRPdn'><style id='KRPdn'><dir id='KRPdn'><q id='KRPdn'></q></dir></style></legend>

            <i id='KRPdn'><tr id='KRPdn'><dt id='KRPdn'><q id='KRPdn'><span id='KRPdn'><b id='KRPdn'><form id='KRPdn'><ins id='KRPdn'></ins><ul id='KRPdn'></ul><sub id='KRPdn'></sub></form><legend id='KRPdn'></legend><bdo id='KRPdn'><pre id='KRPdn'><center id='KRPdn'></center></pre></bdo></b><th id='KRPdn'></th></span></q></dt></tr></i><div id='KRPdn'><tfoot id='KRPdn'></tfoot><dl id='KRPdn'><fieldset id='KRPdn'></fieldset></dl></div>
            <tfoot id='KRPdn'></tfoot>

                <bdo id='KRPdn'></bdo><ul id='KRPdn'></ul>

                    <tbody id='KRPdn'></tbody>
                  本文介绍了Magento 1.8 的 Nginx 配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  有人知道如何在nginx服务器的配置文件中配置server{}吗?我在下面有这样的东西:

                  anybody knows how to configure server {} in configuration file of nginx server? I have something like this below:

                  server {
                    server_name   local.com;
                  
                    root some_path;
                  
                    index index.php;
                  
                    #location / {
                      #try_files $uri $uri/ index.php;
                      #proxy_pass  http://127.0.0.1:9000;
                    #}
                  
                    # set a nice expire for assets
                    #location ~* "^.+.(jpe?g|gif|css|png|js|ico|pdf|zip|tar|t?gz|mp3|wav|swf)$" {
                    #  expires    max;
                    #  add_header Cache-Control public;
                    #}
                  
                    # the downloader has its own index.php that needs to be used
                    #location ~* ^(/downloader|/js|/404|/report)(.*) {
                    #  include fastcgi_params;
                    #  fastcgi_index index.php;
                    #  fastcgi_param  SCRIPT_FILENAME  $document_root$1/index.php$1;
                    #  fastcgi_read_timeout 600;
                    #  fastcgi_pass  127.0.0.1:9000;
                    #}
                  
                    location ~* .php {
                      include               fastcgi_params;
                      fastcgi_param         SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                      fastcgi_read_timeout  18000;
                      fastcgi_pass          127.0.0.1:9000;
                    }
                  
                    #location ~* ^(/index.php)?(.*) {
                    #  include               fastcgi_params;
                    #  fastcgi_param         SCRIPT_FILENAME  $document_root/index.php$1;
                    #  fastcgi_pass          127.0.0.1:9000;
                    #  fastcgi_read_timeout  18000;
                    #}
                  
                  }
                  

                  浏览器返回空白页并且不执行 php...

                  Browser returns blank page and doesn't exec php...

                  在使用 nginx 配置和 php 的东西花了一些时间后,我最终拥有在某些情况下可以正确加载而在某些情况下无法正常加载的网站...

                  After spending some time with nginx configuration and php stuff i ended on having site that in some cases load properly and in some not...

                  例如:我有两个相同的页面,但出于某种原因,首先是加载谎言,然后是部分加载...

                  Ex: I have two pages that are identical, but for some reason first is loading lie a charm, and second is loading partially...

                  有时页面加载到一半...

                  Sometimes page is loading half way...

                  Nginx 没有记录任何东西...

                  Nginx isn't logging anything...

                  出于某种原因,当我尝试转到后端时,nginx 会使用后端 url 加载前端:/

                  And for some reason when i try to go to backend, nginx loads frontend with backend url :/

                  有人可以向我提供其他 magento 1.8 配置吗?

                  Does anybody can provide me with other magento 1.8 configuration ?

                  推荐答案

                  好吧,不是内存或数据库问题,是... IonCube 问题...我正在调试核心类,发现脚本在 Enteprise 上停止模块和...如果您没有安装 IonCube,它只会显示空白页面.

                  Ok, it wasn't memory or database issue, it was... IonCube issue... i was debuging core classes and found that script stops on Enteprise Modules and... if You don't have IonCube installed it just simply display blank page.

                  但是,现在 Magento 返回 404:找不到页面...

                  But, now Magento returns 404: Page not found...

                  谢谢,寻求帮助的人,如果您对第二个问题有任何建议,请随时在此处发布:)

                  Thx, guys for help and if You have some advice on second issue fell free to post it here :)

                  应用小修复后:

                  /* Store or website code */
                  $mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : '';
                  /* Run store or run website */
                  $mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'store';
                  Mage::run('', 'store'); //<-this
                  //Mage::run($mageRunCode, $mageRunType);
                  

                  Front 和 Back 正在加载,但控制器有问题......但不会太久!

                  Front and Back are loading, but there is an problem with controllers... but not for long !

                  A,如果我输入 url/admin nginx 将返回找不到输入文件,但是当我输入 index.php/admin 时它会加载...部分.这是重写和服务器变量的问题.

                  A and if i type in url /admin nginx will return Input file not found, but when i type index.php/admin it load... part. It's and issue with rewrite and server vars.

                  我赢了!iconv 没有安装...现在一切正常,除了重写...

                  I won ! iconv wasn't installed... now everything work except rewriting...

                  总结:我需要找到一种方法来正确获取 index.php 文件的服务器 var 并将 index.php 重写为/

                  SUMMARY: I need to find a way to properly get server var for index.php file and rewrite index.php to /

                  感谢帮助!

                  这篇关于Magento 1.8 的 Nginx 配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:通过在彼此内部嵌套子查询来解决 MySQL 中的 61 个表 JOIN 限制 下一篇:CakePHP - 获取上次运行的查询

                  相关文章

                  <small id='1Llhb'></small><noframes id='1Llhb'>

                    <bdo id='1Llhb'></bdo><ul id='1Llhb'></ul>
                1. <tfoot id='1Llhb'></tfoot>
                2. <i id='1Llhb'><tr id='1Llhb'><dt id='1Llhb'><q id='1Llhb'><span id='1Llhb'><b id='1Llhb'><form id='1Llhb'><ins id='1Llhb'></ins><ul id='1Llhb'></ul><sub id='1Llhb'></sub></form><legend id='1Llhb'></legend><bdo id='1Llhb'><pre id='1Llhb'><center id='1Llhb'></center></pre></bdo></b><th id='1Llhb'></th></span></q></dt></tr></i><div id='1Llhb'><tfoot id='1Llhb'></tfoot><dl id='1Llhb'><fieldset id='1Llhb'></fieldset></dl></div>
                  <legend id='1Llhb'><style id='1Llhb'><dir id='1Llhb'><q id='1Llhb'></q></dir></style></legend>