Shopware Community Edition (Version 3.5.6) unter nginx betreiben

Shopware Community Edition (Version 3.5.6) unter nginx betreiben

Für alle, die gerne selber mal mit Shopware unter nginx herumspielen möchten, habe ich ein Tutorial auf HowtoForge veröffentlicht: Running Shopware Community Edition (Version 3.5.6) On Nginx (LEMP) On Debian Squeeze/Ubuntu 12.04

Neben der Installation/Konfiguration von Shopware unter nginx wird auch die Installation des ionCube Loaders sowie von Xcache, einem PHP-Opcode-Cacher,  beschrieben.

Der Unterschied zur nginx-Konfiguration aus dem Shopware-Wiki besteht darin, daß ich anstatt...

    # Permit access to php files in web readable directories
location ~ ^/cache/.*/*.(php|cgi|php5|php3|php4|phtml|pl|py) {
deny all;
}
location ~ ^/images/.*/*.(php|cgi|php5|php3|php4|phtml|pl|py) {
deny all;
}
location ~ ^/files/.*/*.(php|cgi|php5|php3|php4|phtml|pl|py) {
deny all;
}
location ~ ^/upload/.*/*.(php|cgi|php5|php3|php4|phtml|pl|py) {
deny all;
}

... Folgendes benutze:

    # Deny access to php files in web readable directories
location ~ ^/cache/.*/.*\.(php|cgi|php5|php3|php4|phtml|pl|py) {
deny all;
}
location ~ ^/images/.*/.*\.(php|cgi|php5|php3|php4|phtml|pl|py) {
deny all;
}
location ~ ^/files/.*/.*\.(php|cgi|php5|php3|php4|phtml|pl|py) {
deny all;
}
location ~ ^/upload/.*/.*\.(php|cgi|php5|php3|php4|phtml|pl|py) {
deny all;
}

Ohne diese kleine Änderung werden Bilder aus dem images/supplier-Verzeichnis nicht angezeigt, da location ~ ^/images/.*/*.(php|cgi|php5|php3|php4|phtml|pl|py) { sowohl für Dateien mit der Endung .pl als auch für das Verzeichnis supplier zutrifft, während location ~ ^/images/.*/.*\.(php|cgi|php5|php3|php4|phtml|pl|py) { für Dateien mit der Endung .pl zutrifft, nicht aber für das Verzeichnis supplier.

Wer Shopware unter nginx testen möchte, ohne es selber installieren zu müssen, findet unsere Shopware-Demo-Installation sowei einige weitere Demo-Installationen auf unserer Testen Sie uns-Seite.

Testen Sie uns 14 Tage kostenlos Jetzt testen