aaPanel_Jose
Please, is urgent. The script what i will install is Yetishare file host
Help. I need to install mine, but I need to rewrite the mod on my server by running the panel. My developer said that I need to put this in the nginx rules. How to do in aapanel?
`#######################################################################
Full /etc/nginx/sites-available/default file example below:
#######################################################################
server {
listen 80;
server_name localhost; # change this for your server
root /usr/share/nginx/html;
index index.php;
client_max_body_size 5G;
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php$ {
if (!-e $request_filename) { rewrite ^/(.*) /index.php?_page_url=$1 last; }
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location / {
if (!-e $request_filename) {
rewrite ^/(.*) /index.php?_page_url=$1 last;
}
}
location /files/ {
internal;
}
# these locations would be hidden by .htaccess normally
location /logs/ {
deny all;
}
location ~* "/\.(htaccess|htpasswd)$" {
deny all;
return 404;
}
}`