1 頁 (共 1 頁)

linux 16.04 nginx config

發表於 : 2018-05-03 09:39:50
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