Created
April 21, 2015 15:57
-
-
Save hbsdev/24f92f7c8ad77da9bdc5 to your computer and use it in GitHub Desktop.
shopware-nginx.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment