text 服务器块con subdominio y php,sin SSL。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 服务器块con subdominio y php,sin SSL。相关的知识,希望对你有一定的参考价值。

upstream php {
  server unix:/tmp/php-cgi.socket;
  server 127.0.0.1:9000;
}

server {
	
	listen 80;
	
  	root /var/www/html;
  	index index.php index.html index.nginx-debian.html;
  	server_name bikelife.cl www.bikelife.cl;
  
  	location / {
    	try_files $uri $uri/ /index.php?$args;
  	}
 
	location ~ \.php$ {
		#NOTE: You should have “cgi.fix_pathinfo = 0;” in php.ini
		include fastcgi.conf;
		include fastcgi_params;
		fastcgi_pass php;
		include snippets/fastcgi-php.conf;
	}

	location ~ /\.ht {
		deny all;
	}

}

server {
	
	listen 80;
	
  	root /var/www/dev-html;
  	index index.php index.html index.nginx-debian.html;
  	server_name dev.bikelife.cl;
  
  	location / {
    	try_files $uri $uri/ /index.php?$args;
  	}
 
	location ~ \.php$ {
		#NOTE: You should have “cgi.fix_pathinfo = 0;” in php.ini
		include fastcgi.conf;
		include fastcgi_params;
		fastcgi_pass php;
		include snippets/fastcgi-php.conf;
	}

	location ~ /\.ht {
		deny all;
	}

}

以上是关于text 服务器块con subdominio y php,sin SSL。的主要内容,如果未能解决你的问题,请参考以下文章

text 服务器阻塞puerto 80 con subdominios con PHP

text Levanta un server local rapidito y accesible para dispositivos CON NODE

text Un controlador con respuesta Json y devolviendo las imagenes de un producto especifico

varletconst的区别

PHP 实时搜索con ajax y php

实时搜索con ajax y php