ini https://www.sitepoint.com/set-automatic-virtual-hosts-nginx-apache/

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ini https://www.sitepoint.com/set-automatic-virtual-hosts-nginx-apache/相关的知识,希望对你有一定的参考价值。

server {
    listen 80;
    server_name ~^(www\.)?(?<sname>.+?).local.com$;
    root /home/vagrant/Code/$sname/public;

    index index.html index.htm index.php;

    charset utf-8;

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

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    access_log /var/log/nginx/$sname-access.log;
    error_log  /var/log/nginx/wildcard-error.log debug;

    error_page 404 /index.php;

    sendfile off;

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
    }

    location ~ /\.ht {
        deny all;
    }
}

以上是关于ini https://www.sitepoint.com/set-automatic-virtual-hosts-nginx-apache/的主要内容,如果未能解决你的问题,请参考以下文章

仅在移动设备上的文本后面的按钮

media type

npm & yarn 包更新机制

SASS优化响应式断点管理

五个典型的JavaScript面试题

Android Paypal 用户使用 sdk 登录