欧美亚洲中文,在线国自产视频,欧洲一区在线观看视频,亚洲综合中文字幕在线观看

      1. <dfn id="rfwes"></dfn>
          <object id="rfwes"></object>
        1. 站長(zhǎng)資訊網(wǎng)
          最全最豐富的資訊網(wǎng)站

          laravel在nginx中能配置到已有站點(diǎn)路徑嗎?

          下面由Laravel教程欄目帶大家介紹關(guān)于laravel怎么在nginx中配置到一個(gè)已有站點(diǎn)的路徑下,希望對(duì)大家有所幫助!

          問(wèn)題描述:

          laravel 如何在nginx中配置到一個(gè)已經(jīng)有的站點(diǎn)的路徑下

          現(xiàn)在配置文件如下,已經(jīng)有一個(gè)站點(diǎn)在工作了。新建了一個(gè)laravel的工程,在其他路徑:/var/www/html/laravel.

          如何配置才能正常訪問(wèn) sms.dev/laravel/path ?

          server{         listen 80;         server_name sms.dev;         index index.php index.html index.htm;         root /var/www/html/sms;         location /laravel/ {             # 這里如何配置呢?         }         location ~ .*.(php|php5)?$         {                 fastcgi_pass  127.0.0.1:9000;                 fastcgi_index index.php;                 include fcgi.conf;         }                  if (!-e $request_filename) {                 return 404;         } }

          解決辦法:

          location ^~ /app/ {     alias /var/www/laravel/public/;     if (!-e $request_filename) { rewrite ^ /app/index.php last; }     location ~ .php$ {         if (!-f $request_filename) { return 404; }         include snippets/fastcgi-php.conf;         fastcgi_param SCRIPT_FILENAME $request_filename;         fastcgi_pass unix:/run/php/php7.0-fpm.sock;     } }

          贊(0)
          分享到: 更多 (0)
          網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)