Last active
August 29, 2015 14:27
-
-
Save martiis/bf005da4350d580ebcfa to your computer and use it in GitHub Desktop.
Nginx configuration for OXID eCommerce
This file contains hidden or 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
server { | |
listen 80; | |
server_name oxid.dev www.oxid.dev; | |
root /var/www/oxid; | |
index index.php index.html; | |
location = /favicon.ico { | |
log_not_found off; | |
access_log off; | |
} | |
location = /robots.txt { | |
allow all; | |
log_not_found off; | |
access_log off; | |
} | |
location ~ (/\.|EXCEPTION_LOG\.txt|\.log$|\.tpl$|pkg.rev) { | |
deny all; | |
} | |
location ~ /out/pictures/.*(\.jpg|\.gif|\.png)$ { | |
try_files $uri /core/utils/getimg.php; | |
} | |
location ~ ^/(admin|setup)/?$ { | |
} | |
location ~ /(core|export|modules|out|tmp|views)/ { | |
} | |
location / { | |
try_files $uri $uri/ /oxseo.php$is_args$args; | |
} | |
location ~ /oxseo.php(/|$) { | |
try_files $uri =404; | |
include /etc/nginx/fastcgi_params; | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
fastcgi_split_path_info ^(.+\.php)(/.*)$; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
} | |
location ~ \.php(/|$) { | |
try_files $uri =404; | |
include /etc/nginx/fastcgi_params; | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
fastcgi_split_path_info ^(.+\.php)(/.*)$; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
} | |
error_log /var/log/nginx/oxid.dev.error.log; | |
access_log /var/log/nginx/oxid.dev.access.log; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment