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 revisionNext 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 [2017/07/13 12:09] – demiankatz | ||
---|---|---|---|
Line 42: | Line 42: | ||
} | } | ||
} | } | ||
+ | </ | ||
+ | |||
+ | If you want to serve vufind in diferent location (in my case "/ | ||
+ | |||
+ | This // | ||
+ | |||
+ | |||
+ | < | ||
+ | | ||
+ | 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 ---- | ||
---- | ---- | ||
installation/nginx.txt · Last modified: 2023/11/28 20:37 by demiankatz