Skip to content

Instantly share code, notes, and snippets.

@hbsdev
Created April 21, 2015 15:57
Show Gist options
  • Save hbsdev/24f92f7c8ad77da9bdc5 to your computer and use it in GitHub Desktop.
Save hbsdev/24f92f7c8ad77da9bdc5 to your computer and use it in GitHub Desktop.

Revisions

  1. hbsdev renamed this gist Apr 21, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. hbsdev created this gist Apr 21, 2015.
    48 changes: 48 additions & 0 deletions shopware-nginx.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,48 @@
    # https://hostianer.de/shopware-hosting-mit-nginx/

    client_max_body_size 100M;
    location ~ /(engine|images/[a-z]+|files|templates)/ {
    }
    location / {
    index index.html index.php shopware.php;
    rewrite shopware.dll /shopware.php;
    rewrite files/documents/.* /engine last;
    rewrite images/ayww/(.*) /images/banner/$1 last;
    rewrite backend/media/(.*) /media/$1 last;
    if (!-e $request_filename){
    rewrite . /shopware.php last;
    }
    }
    location ~ \.(tpl|yml|ini)$ {
    deny all;
    }
    location /install/ {
    location /install/assets {
    }
    if (!-e $request_filename){
    rewrite . /install/index.php last;
    }
    }
    location /update/ {
    location /update/assets {
    }
    location /update/templates {
    }
    if (!-e $request_filename){
    rewrite . /update/index.php last;
    }
    }
    location /recovery/install/ {
    location /recovery/install/assets {
    }
    if (!-e $request_filename){
    rewrite . /recovery/install/index.php last;
    }
    }
    location /recovery/update/ {
    location /recovery/update/assets {
    }
    if (!-e $request_filename){
    rewrite . /recovery/update/index.php last;
    }
    }