Answer the question
In order to leave comments, you need to log in
How to add another shared folder in nginx?
in the config ( nginx/conf.d/ ) you need to add another folder /home/download . I've already tried so many combinations and all the time nginx just doesn't start .. write how to add 1 more folder for access from outside.
initially, all the folders on the forum were configured in /var/www/domine/upload
, but the place on the hard drive ran out and added another partition /home/ there, created the downloadsites folder and chose
to upload new files to /home/downloadsites in the forum, the forum uploads files .. but the user cannot view them with a 404 error.
----------------
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name domine www.domine.com;
root /var/www/domine.com;
index index.html index.php;
client_max_body_size 5000m;
location / {
try_files $uri $uri/ =404;
}
location ~* \.php$ {
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_send_timeout 600;
fastcgi_read_timeout 600;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question