linux 16.04 nginx config

https://invdemo.551.com.tw
回覆文章
yehlu
Site Admin
文章: 3244
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

linux 16.04 nginx config

文章 yehlu »

551einv

代碼: 選擇全部

server {
        listen 55180;
        listen [::]:55180;
        root /var/www/html/551einv/public;

        # Add index.php to the list if you are using PHP
        index index.php index.html index.htm index.nginx-debian.html;

        server_name 10.10.40.159;

        location / {
                try_files $uri $uri/ /index.php?$query_string;
        }

        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/run/php/php7.0-fpm.sock;
        }   
}             
ubuntu 16.04 php 7.0
apt-get

代碼: 選擇全部

php-cli
php-fpm
php-mysql
php-curl
php-xml
php-mcrypt
回覆文章

回到「551einv」