mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 09:41:59 +01:00
49 lines
1.6 KiB
Plaintext
49 lines
1.6 KiB
Plaintext
|
|
#### IMPORTANT!!!
|
|
####
|
|
#### Fix the listen IP-address, and the hostname
|
|
####
|
|
|
|
server {
|
|
listen 1.2.3.4:80;
|
|
server_name piler.yourdomain.com;
|
|
|
|
root /var/www/piler.piler.yourdomain.com;
|
|
|
|
access_log /var/log/nginx/piler.yourdomain.com-access.log main;
|
|
error_log /var/log/nginx/piler.yourdomain.com-error.log;
|
|
|
|
location / {
|
|
index index.php index.html;
|
|
}
|
|
|
|
#error_page 404 /404.html;
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root html;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
fastcgi_index index.php;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
include fastcgi_params;
|
|
}
|
|
|
|
rewrite /search.php /index.php?route=search/search&type=simple;
|
|
rewrite /advanced.php /index.php?route=search/search&type=advanced;
|
|
rewrite /expert.php /index.php?route=search/search&type=expert;
|
|
rewrite /search-helper.php /index.php?route=search/helper;
|
|
rewrite /audit-helper.php /index.php?route=audit/helper;
|
|
rewrite /message.php /index.php?route=message/view;
|
|
rewrite /bulkrestore.php /index.php?route=message/bulkrestore;
|
|
rewrite /folders.php /index.php?route=folder/list&;
|
|
rewrite /settings.php /index.php?route=user/settings;
|
|
rewrite /login.php /index.php?route=login/login;
|
|
rewrite /logout.php /index.php?route=login/logout;
|
|
rewrite /google.php /index.php?route=login/google;
|
|
rewrite /view/javascript/piler.js /js.php;
|
|
}
|
|
|