久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

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

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

      問題描述:

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

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

      如何配置才能正常訪問 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號-2    滬公網(wǎng)安備31011702889846號