diff options
author | punk <punk@libernaut> | 2021-04-29 16:10:16 +0100 |
---|---|---|
committer | punk <punk@libernaut> | 2021-04-29 16:10:16 +0100 |
commit | 5e601f7ee14830ef645ee3d3b1bcdce7450a5ce3 (patch) | |
tree | fd61f912b509c9056e79b9f0ee6b700584c85b57 /tools/conf/etc/nginx/sites-enabled/shop.conf | |
parent | 3790c6ecd836d25815f7cb8deef62a77d4f3ac9f (diff) | |
download | doc-5e601f7ee14830ef645ee3d3b1bcdce7450a5ce3.tar.gz |
linux tools configs moved to linux folder
Diffstat (limited to 'tools/conf/etc/nginx/sites-enabled/shop.conf')
-rw-r--r-- | tools/conf/etc/nginx/sites-enabled/shop.conf | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/tools/conf/etc/nginx/sites-enabled/shop.conf b/tools/conf/etc/nginx/sites-enabled/shop.conf deleted file mode 100644 index de34e40..0000000 --- a/tools/conf/etc/nginx/sites-enabled/shop.conf +++ /dev/null @@ -1,86 +0,0 @@ -server { - listen 8080; - server_name shop.server.ank; - - access_log syslog:server=unix:/dev/log,facility=daemon,tag=nginx_shop,nohostname main; - error_log syslog:server=unix:/dev/log,facility=daemon,tag=nginx_shop_err,nohostname debug; - - location ~ ^/shop/admin { - alias /srv/www/shop/upload/admin; - index index.php; - - location ~ ^/shop/admin/config.php { - deny all; - } - - location ~ \.php$ { - include /etc/nginx/fastcgi_params; - fastcgi_param SCRIPT_FILENAME $request_filename$1; - fastcgi_pass 127.0.0.1:9000; - } - } - - location ^~ /shop { - alias /srv/www/shop/upload; - index index.php; - #try_files $uri $uri/ index.php$is_args$args; - #try_files index.php @opencart; - - location ~ ^/shop/upload/image/data { - autoindex on; - } - - location ~ ^/shop/config.php { - deny all; - } - - - location ~ ^/shop/admin/config.php { - deny all; - } - -# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac). -# - location ~ ^/shop/\. { - deny all; - access_log off; - log_not_found off; - } - location ~ ^/shop/\.(jpg|jpeg|png|gif|css|js|ico)$ { - expires max; - log_not_found off; - } - - location ~ \.php$ { - include /etc/nginx/fastcgi_params; - fastcgi_param SCRIPT_FILENAME $request_filename$1; - fastcgi_pass 127.0.0.1:9000; - #fastcgi_split_path_info ^(.+\.php)(/.+)$; - #fastcgi_split_path_info ^(.+\.php)(.*)$; - #fastcgi_index index.php; - #try_files $uri /index.php =404; - # fastcgi_pass unix:/var/run/php5-fpm.sock; - } - - } - - - location @tribushop { - rewrite ^/shop/(.+)$ /shop/index.php?_route_=$1 last; - } - - location /shop/engine { - deny all; - } - - location ~ ^/shop/library { - deny all; - } - - # Make sure files with the following extensions do not - # get loaded by nginx because nginx would display the - # source code, and these files can contain PASSWORDS! - location ~ ^/shop/\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|.*ini|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|\.php_ { - deny all; - } -} |