/<_>//<___id>/<___id>/<-__id>/<filename.ext>
, .
Nginx X-ACCEL_REDIRECT . Nginx.
Nginx + php-fpm. nginx :
server { listen <your_LAN_ip>; server_name <you_file_storage_hostname>; location /<location_name> { internal; root <storage_root_path_should_be_the_same_in_lib.php>; } location ~ \.php { root /<path_to_php_code>; fastcgi_pass 127.0.0.1:9000; #fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /<path_to_php_code>/$fastcgi_script_name; include fastcgi_params; } }
/<_>//<___id>/<___id>/<-__id>/<filename.ext>
, .
Nginx X-ACCEL_REDIRECT . Nginx.
Nginx + php-fpm. nginx :
server { listen <your_LAN_ip>; server_name <you_file_storage_hostname>; location /<location_name> { internal; root <storage_root_path_should_be_the_same_in_lib.php>; } location ~ \.php { root /<path_to_php_code>; fastcgi_pass 127.0.0.1:9000; #fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /<path_to_php_code>/$fastcgi_script_name; include fastcgi_params; } }
/<_>//<___id>/<___id>/<-__id>/<filename.ext>
, .
Nginx X-ACCEL_REDIRECT . Nginx.
Nginx + php-fpm. nginx :
server { listen <your_LAN_ip>; server_name <you_file_storage_hostname>; location /<location_name> { internal; root <storage_root_path_should_be_the_same_in_lib.php>; } location ~ \.php { root /<path_to_php_code>; fastcgi_pass 127.0.0.1:9000; #fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /<path_to_php_code>/$fastcgi_script_name; include fastcgi_params; } }
/<_>//<___id>/<___id>/<-__id>/<filename.ext>
, .
Nginx X-ACCEL_REDIRECT . Nginx.
Nginx + php-fpm. nginx :
server { listen <your_LAN_ip>; server_name <you_file_storage_hostname>; location /<location_name> { internal; root <storage_root_path_should_be_the_same_in_lib.php>; } location ~ \.php { root /<path_to_php_code>; fastcgi_pass 127.0.0.1:9000; #fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /<path_to_php_code>/$fastcgi_script_name; include fastcgi_params; } }
-
/<_>//<___id>/<___id>/<-__id>/<filename.ext>
, .
Nginx X-ACCEL_REDIRECT . Nginx.
Nginx + php-fpm. nginx :
server { listen <your_LAN_ip>; server_name <you_file_storage_hostname>; location /<location_name> { internal; root <storage_root_path_should_be_the_same_in_lib.php>; } location ~ \.php { root /<path_to_php_code>; fastcgi_pass 127.0.0.1:9000; #fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /<path_to_php_code>/$fastcgi_script_name; include fastcgi_params; } }
/<_>//<___id>/<___id>/<-__id>/<filename.ext>
, .
Nginx X-ACCEL_REDIRECT . Nginx.
Nginx + php-fpm. nginx :
server { listen <your_LAN_ip>; server_name <you_file_storage_hostname>; location /<location_name> { internal; root <storage_root_path_should_be_the_same_in_lib.php>; } location ~ \.php { root /<path_to_php_code>; fastcgi_pass 127.0.0.1:9000; #fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /<path_to_php_code>/$fastcgi_script_name; include fastcgi_params; } }
-
/<_>//<___id>/<___id>/<-__id>/<filename.ext>
, .
Nginx X-ACCEL_REDIRECT . Nginx.
Nginx + php-fpm. nginx :
server { listen <your_LAN_ip>; server_name <you_file_storage_hostname>; location /<location_name> { internal; root <storage_root_path_should_be_the_same_in_lib.php>; } location ~ \.php { root /<path_to_php_code>; fastcgi_pass 127.0.0.1:9000; #fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /<path_to_php_code>/$fastcgi_script_name; include fastcgi_params; } }
Source: https://habr.com/ru/post/150514/
All Articles