mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:27:03 +02:00
minor fixes
This commit is contained in:
21
contrib/webserver/piler-apache-2.x.conf
Normal file
21
contrib/webserver/piler-apache-2.x.conf
Normal file
@ -0,0 +1,21 @@
|
||||
#### IMPORTANT!!!
|
||||
####
|
||||
#### Fix the hostname
|
||||
####
|
||||
|
||||
<VirtualHost *:80>
|
||||
ServerName piler.yourdomain.com
|
||||
|
||||
DocumentRoot "/var/www/piler.yourdomain.com"
|
||||
|
||||
<Directory /var/www/piler.yourdomain.com>
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
|
||||
AllowOverride all
|
||||
</Directory>
|
||||
|
||||
ErrorLog "/var/log/apache2/piler.yourdomain.com-error_log"
|
||||
CustomLog "/var/log/apach2/piler.yourdomain.com-access_log" common
|
||||
</VirtualHost>
|
||||
|
48
contrib/webserver/piler-nginx.conf
Normal file
48
contrib/webserver/piler-nginx.conf
Normal file
@ -0,0 +1,48 @@
|
||||
|
||||
#### 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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user