41 lines
No EOL
1 KiB
Nginx Configuration File
41 lines
No EOL
1 KiB
Nginx Configuration File
server {
|
|
listen 443;
|
|
server_name {{server}}.actcur.com;
|
|
root /sites/{{server}};
|
|
|
|
ssl on;
|
|
ssl_certificate /etc/nginx/certs/{{server}}.actcur.com/fullchain.pem;
|
|
ssl_certificate_key /etc/nginx/certs/{{server}}.actcur.com/privkey.pem;
|
|
|
|
index index.html index.htm index.php;
|
|
|
|
charset utf-8;
|
|
|
|
rewrite_log on;
|
|
|
|
location @laravel {
|
|
rewrite ^(/[^/]+/[^/]+)/(.*)$ $1/index.php?$2 last;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ @laravel;
|
|
}
|
|
|
|
location = /favicon.ico { access_log off; log_not_found off; }
|
|
location = /robots.txt { access_log off; log_not_found off; }
|
|
|
|
error_page 404 /index.php;
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
|
|
fastcgi_index index.php;
|
|
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
|
include fastcgi_params;
|
|
}
|
|
|
|
location ~ /\.(?!well-known).* {
|
|
deny all;
|
|
}
|
|
error_log /var/log/nginx/ra_error.log notice;
|
|
access_log /var/log/nginx/ra_access.log;
|
|
} |