I have the following nginx config that works fine if the shopkeeper is in root directory but I'm all in one / store directory I have to make the files. I would change the location / to / shop / but it does not work.
Does anybody know how I can tell NGN that the shopkeeper is in the subdirectory / shop?
place ~ / (engine | picture / [ag] + | files | templates) / {} location / {index index index.php shopware.php; Rewrite Shopware.dll / shopware.php; Files / documents /. * / Rewrite the engine; Rewrite images / ayww /(.*) / images / banner / $ 1 last; Backend rewrite / media /(.*) / media / $ 1 final; If (! -e $ request_filename) {rewrite last /shopware.php; }} Place ~ \. (Tpl | yml | ini) $ {all rejected; } Location / install / {location / install / property {} if (! -e $ request_filename) {rewrite} /install/index.php last; }} Location / update / {location / update / assets} location / update / template {} if (! -e $ request_filename) {rewrite} /update/index.php last; }} Location / retrieval / install / {location / recovery / install / property {} if (! -e $ request_filename) {rewrite} /recovery/install/index.php last; }} Location / retrieval / update / {location / recovery / update / property {} if (! -e $ request_filename) {rewrite} /recovery/update/index.php last; }} Place @php {## merge ## #fastcgi_buffer_size 128k; #fastcgi_buffers256 16k; #fastcgi_busy_buffers_size 256k; #fastcgi_temp_file_write_size 256k; Fastcgi_temp_file_write_size10m; Fastcgi_busy_buffers_size 512k; Fastcgi_buffer_ size 512k; Fastcus_buffers 16 512k; Fastcgi_read_timeout 1200; }
root?
root / var / www / domain.com / shop;
and
fastcgi_param SCRIPT_FILENAME $ document_root $ fastcgi_script_name;
No comments:
Post a Comment