<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                [TOC] # tpshop的nginx 服務器配置方法 這里造成注意第1個location和第2個location,都要加 第3個location中的,根據不同服務器的`.sock`加載不同的內容,本服務是這個 >oneinstack ``` fastcgi_pass unix:/dev/shm/php-cgi.sock; ``` >tpshop官方給的加的是這個 ``` fastcgi_pass unix:/tmp/php-cgi.sock; ``` 很多時間打不開都是因為它的路徑不正確而引起的! ## 配置 以下配置地方,可以在 `php-fpm.conf` 進行配置, `alidata` 的地址: `/alidata/server/php-5.5.7/etc/php-fpm.conf` ![mark](http://qiniu.newthink.cc/blog/20171107-141331782.png) ## DEMO1:完整代碼如下: 采用 `php-cgi.sock` 形式 ``` server { listen 80; server_name banmutian.sxctkj.cc; #access_log /data/wwwlogs/banmutian.sxctkj.cc_nginx.log combined; index index.html index.htm index.php; root /data/wwwroot/banmutian.sxctkj.cc; location / { index index.htm index.html index.php; if (!-e $request_filename){ rewrite ^/(.*)$ /index.php?s=$1 last; break; } } location ~ /.*\.php/ { rewrite ^(.*?/?)(.*\.php)(.*)$ /$2?s=$3 last; break; } location ~ \.php { fastcgi_pass unix:/dev/shm/php-cgi.sock; fastcgi_index index.php; include fastcgi_params; set $real_script_name $fastcgi_script_name; if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") { set $real_script_name $1; #set $path_info $2; } fastcgi_param SCRIPT_FILENAME $document_root$real_script_name; fastcgi_param SCRIPT_NAME $real_script_name; #fastcgi_param PATH_INFO $path_info; } } ``` ## DEMO2:采用 `fastcgi_pass` 形式 ``` server { listen 80; server_name shop.sxqibo.com; default_type 'text/html'; charset utf8; index index.php; root /mnt/www/tpshop208; # location ~ .*\.(php|php5)?$ # { # #fastcgi_pass unix:/tmp/php-cgi.sock; # fastcgi_pass 127.0.0.1:9000; # fastcgi_index index.php; # include fastcgi.conf; # } location / { if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$1 last; break; } } location ~ \.php { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; set $real_script_name $fastcgi_script_name; if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") { set $real_script_name $1; set $path_info $2; } fastcgi_param SCRIPT_FILENAME $document_root$real_script_name; fastcgi_param SCRIPT_NAME $real_script_name; fastcgi_param PATH_INFO $path_info; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 1h; } #include /alidata/server/nginx/conf/rewrite/zybuxi.conf; access_log /alidata/log/nginx/access/tpshop208.log; } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看