You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

61 lines
1.5 KiB

server {
listen 80;
server_name default_server;
root /omeka/Omeka;
index index.php index.html index.htm;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location / {
try_files $uri /index.php?$args;
}
location /admin {
try_files $uri /admin/index.php?$args;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
include fastcgi.conf;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
fastcgi_pass omeka:9000;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
location /install {
try_files $uri /install/install.php?$args;
# This is an odd way to check that rewrites work...
location ~* /install/check-mod-rewrite([^/]*)\.html$ {
rewrite ^ /install/mod-rewrite.php?enabled=true;
}
}
access_log /var/log/nginx/omeka.access.log;
error_log /var/log/nginx/omeka.error.log;
}