Warning: This page has not been updated in over over a year and may be outdated or deprecated.
installation:nginx
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
installation:nginx [2015/12/08 19:26] – ↷ Page moved and renamed from vufind2:using_nginx_with_vufind to installation:nginx demiankatz | installation:nginx [2023/11/28 20:36] – demiankatz | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Using Nginx with VuFind | + | ====== Using Nginx with VuFind® |
- | You can serve VuFind | + | You can serve VuFind® |
- | This example configuration was shared by Sascha-Oliver Prolic. | + | ===== Example 1 ===== |
+ | |||
+ | // This example configuration was shared by Sascha-Oliver Prolic. | ||
< | < | ||
Line 42: | Line 44: | ||
} | } | ||
} | } | ||
+ | </ | ||
+ | |||
+ | // This example configuration was shared by Horacio Degiorgi. // | ||
+ | |||
+ | If you want to serve VuFind® in a different location (in this case, "/ | ||
+ | |||
+ | < | ||
+ | | ||
+ | default_type text/css; | ||
+ | alias / | ||
+ | } | ||
+ | |||
+ | location ~ / | ||
+ | alias / | ||
+ | } | ||
+ | |||
+ | location ~ / | ||
+ | alias / | ||
+ | } | ||
+ | |||
+ | location / | ||
+ | alias / | ||
+ | index index.php; | ||
+ | ## Check for file existing and if there, stop ## | ||
+ | if (-f $request_filename) { | ||
+ | break; | ||
+ | } | ||
+ | |||
+ | ## Check for file existing and if there, stop ## | ||
+ | if (-d $request_filename) { | ||
+ | break; | ||
+ | } | ||
+ | |||
+ | ## If we get here then there is no file or directory matching request_filename ## | ||
+ | rewrite (.*) / | ||
+ | |||
+ | location ~ \.php$ { | ||
+ | fastcgi_intercept_errors on; | ||
+ | fastcgi_param SCRIPT_FILENAME $request_filename; | ||
+ | # | ||
+ | # | ||
+ | fastcgi_param VUFIND_HOME / | ||
+ | fastcgi_param VUFIND_LOCAL_DIR / | ||
+ | # | ||
+ | # | ||
+ | fastcgi_pass 127.0.0.1: | ||
+ | fastcgi_index index.php; | ||
+ | include fastcgi_params; | ||
+ | } | ||
+ | } | ||
+ | |||
</ | </ | ||
---- struct data ---- | ---- struct data ---- | ||
+ | properties.Page Owner : | ||
---- | ---- | ||
installation/nginx.txt · Last modified: 2023/11/28 20:37 by demiankatz