ini nginx virtualhost laravel

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ini nginx virtualhost laravel相关的知识,希望对你有一定的参考价值。

server {
        listen   443 ssl; ## listen for ipv4; this line is default and implied
        #listen   [::]:80 default ipv6only=on; ## listen for ipv6

        root /var/www/project/html/public;
        index index.php;

        server_name dominio;
	
        ssl_certificate "/etc/pki/nginx/server.crt";
        ssl_certificate_key "/etc/pki/nginx/server.key";
		ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_session_cache shared:SSL:1m;
        ssl_session_timeout  10m;
        ssl_ciphers HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers on;
		
		location / {
			try_files $uri $uri/ /index.php$is_args$args;
		}
		
		location ~ \.php$ {
			#try_files $uri =404;
			fastcgi_split_path_info ^(.+\.php)(/.+)$;

			# With php5-cgi alone:
			fastcgi_pass 127.0.0.1:9000;
			fastcgi_index index.php;
			include /etc/nginx/fastcgi.conf;
		}
		    
	}

以上是关于ini nginx virtualhost laravel的主要内容,如果未能解决你的问题,请参考以下文章

ini 配置VirtualHost

ini 配置Apache虚拟主机和PHP使用; http://stackoverflow.com/questions/9110179/adding-virtualhost-fails-access-f

Nginx 虚拟主机 VirtualHost 配置

markdown NGINX Virtualhost

nginx 的多域名多https转发设置方法

Nginx技术深度剖析