Closed ImLoadingUuU closed 12 months ago
Whoa, is it supposed to be that long? and would you mind changing the language to English?
ok smaller
Whoa, is it supposed to be that long? and would you mind changing the language to English?
2.x.x
location /auth {
rewrite ^/auth/assets/(.*)?$ /sys-auth/assets/$1 break;
rewrite ^/auth/api/(.*)?$ /sys-auth/api/$1.php break;
rewrite ^/auth/(.*)?$ /sys-auth/routes/$1.php break;
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME <FastCGI Path>$fastcgi_script_name; #FastCGI
include fastcgi_params;
}
location /auth/assets {
rewrite ^/auth/assets/(.*)?$ /sys-auth/assets/$1 break;
allow all;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME <FastCGI Path>$fastcgi_script_name; #FastCGI
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
1.8.x
location /auth {
rewrite ^/auth/error /error.php break;
rewrite ^/auth/api/(.*)?$ /sys-auth/api/$1.php break;
rewrite ^/auth/(.*)?$ /sys-auth/$1.php break;
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME <Path>$fastcgi_script_name; #FastCGI
include fastcgi_params;
}
location /auth/assets {
rewrite ^/auth/assets/(.*)?$ /sys-auth/assets/$1 break;
allow all;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME <Path>$fastcgi_script_name;
include fastcgi_params;
}
Okay, I actually never configured NGiX myself, where would these be placed? Can it be a places as a file like .htaccess?
Need an update on this, please add instructions on how to implement this.
@ImLoadingUuU
just add that to nginx.conf
just add that to nginx.conf
This should just be added as an article to the wiki then, or a file somewhere in the repo?
I think it's best to put it in Wiki.
Added to wiki. Thank you.
1.8.x
2.x.x