File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -349,6 +349,7 @@ function mmkDir($folder, $perm = 0777)
349349removeFolder(__DIR__ . "/temp/" . $dir . "/install/assets/chunks");
350350removeFolder(__DIR__ . "/temp/" . $dir . "/install/assets/tvs");
351351removeFolder(__DIR__ . "/temp/" . $dir . "/install/assets/templates");
352+ unlink(__DIR__ . "/temp/" . $dir . "/ng.inx");
352353unlink(__DIR__ . "/temp/" . $dir . "/ht.access");
353354unlink(__DIR__ . "/temp/" . $dir . "/README.md");
354355unlink(__DIR__ . "/temp/" . $dir . "/sample-robots.txt");
Original file line number Diff line number Diff line change 55
66#php_flag register_globals Off
77AddDefaultCharset utf-8
8- #php_value date.timezone Europe/Moscow
8+ #php_value date.timezone Europe/Kyiv
99
1010#Options +FollowSymlinks
1111RewriteEngine On
12+
13+ # Block access to the contents of the Git directory
14+ RewriteCond %{REQUEST_URI} ^\/(.git|.hg|.idea|README.md)
15+ RewriteRule .* - [L,R=404]
16+
1217RewriteBase /
1318
1419# Fix Apache internal dummy connections from breaking [(site_url)] cache
Original file line number Diff line number Diff line change 1+ # You can enable a virtual host via a symbolic link
2+ # Rename this file at .nginx
3+ # sudo ln -s /{domain_path}/.nginx /etc/nginx/sites-enabled/
4+
5+ server {
6+ listen 80;
7+ listen [::]:80;
8+ server_name {domain} www.{domain}; # Change the {domain} as your domain name
9+ merge_slashes off;
10+ root /{domain_path}/; # Change the {domain_path} as your domain root path on this server
11+
12+ add_header X-Frame-Options "SAMEORIGIN";
13+ add_header X-XSS-Protection "1; mode=block";
14+ add_header X-Content-Type-Options "nosniff";
15+
16+ index index.php index.html;
17+
18+ access_log /{domain_path}/core/storage/logs/nginx-access.log; # Change the {domain_path} as your domain root path on this server
19+ client_max_body_size 512M;
20+
21+ error_page 404 /index.php?q=404;
22+
23+ location ~ /\. { access_log off; return 404; }
24+ location / { try_files $uri $uri/ @rewrite; }
25+ location /manager { rewrite ^/manager/(.*)$ /manager/index.php last; }
26+ location = /favicon.ico { access_log off; log_not_found off; }
27+ location = /robots.txt { access_log off; log_not_found off; }
28+
29+ location ~ \.php$ {
30+ try_files $uri @rewrite;
31+ include /etc/nginx/fastcgi.conf;
32+ fastcgi_pass unix:/run/php/php8.2-fpm.sock;
33+ }
34+
35+ location ~* \.(jpg|jpeg|gif|png|ico|css|bmp|swf|js|html|txt|svg|woff|woff2|ttf)$ {
36+ root /{domain_path}/; # Change the {domain_path} as your domain root path on this server
37+ expires max;
38+ }
39+
40+ location @rewrite {
41+ rewrite ^(.*)$ /index.php?q=$1&$args last;
42+ }
43+ }
You can’t perform that action at this time.
0 commit comments