+ laravel nginx config, php84
This commit is contained in:
		
							
								
								
									
										9
									
								
								config/nginx/includes.d/laravel.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								config/nginx/includes.d/laravel.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,9 @@
 | 
			
		||||
location / {
 | 
			
		||||
    rewrite ^/.*$ /index.php last;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# Whitelist
 | 
			
		||||
location = /favicon.ico { try_files $uri /index.php; }
 | 
			
		||||
location ~ ^/.*\.xml { try_files $uri /index.php; }
 | 
			
		||||
location = /robots.txt { try_files $uri /index.php; }
 | 
			
		||||
location = /humans.txt { try_files $uri /index.php; }
 | 
			
		||||
@ -1,4 +1,11 @@
 | 
			
		||||
location / {
 | 
			
		||||
    if ($request_method = '_OPTIONS') {
 | 
			
		||||
        add_header 'Access-Control-Allow-Origin' '*';
 | 
			
		||||
        add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, OPTIONS';
 | 
			
		||||
        add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization';
 | 
			
		||||
        return 204;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    rewrite ^/.*$ /index.php last;
 | 
			
		||||
}
 | 
			
		||||
location ~ ^/combine.*\.(css|js) {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user