Skip to content

Commit a7f9296

Browse files
Create laravel.stpl
1 parent 819faa8 commit a7f9296

File tree

1 file changed

+56
-0
lines changed
  • install/ubuntu/16.10/templates/web/nginx/php-fpm

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
server {
2+
listen %ip%:%web_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
root %docroot%/public;
5+
index index.php index.html index.htm;
6+
access_log /var/log/nginx/domains/%domain%.log combined;
7+
access_log /var/log/nginx/domains/%domain%.bytes bytes;
8+
error_log /var/log/nginx/domains/%domain%.error.log error;
9+
10+
11+
ssl on;
12+
ssl_certificate %ssl_pem%;
13+
ssl_certificate_key %ssl_key%;
14+
15+
location / {
16+
try_files $uri $uri/ /index.php?$query_string;
17+
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
18+
expires max;
19+
}
20+
21+
location ~ [^/]\.php(/|$) {
22+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
23+
if (!-f $document_root$fastcgi_script_name) {
24+
return 404;
25+
}
26+
27+
fastcgi_pass %backend_lsnr%;
28+
fastcgi_index index.php;
29+
include /etc/nginx/fastcgi_params;
30+
}
31+
}
32+
33+
error_page 403 /error/404.html;
34+
error_page 404 /error/404.html;
35+
error_page 500 502 503 504 /error/50x.html;
36+
37+
location /error/ {
38+
alias %home%/%user%/web/%domain%/document_errors/;
39+
}
40+
41+
location ~* "/\.(htaccess|htpasswd)$" {
42+
deny all;
43+
return 404;
44+
}
45+
46+
location /vstats/ {
47+
alias %home%/%user%/web/%domain%/stats/;
48+
include %home%/%user%/web/%domain%/stats/auth.conf*;
49+
}
50+
51+
include /etc/nginx/conf.d/phpmyadmin.inc*;
52+
include /etc/nginx/conf.d/phppgadmin.inc*;
53+
include /etc/nginx/conf.d/webmail.inc*;
54+
55+
include %home%/%user%/conf/web/nginx.%domain_idn%.conf*;
56+
}

0 commit comments

Comments
 (0)