This repository has been archived by the owner on Sep 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Webserver setup
ftbastler edited this page May 18, 2015
·
3 revisions
This is only for advanced users.
This project comes with a .htaccess file and there isn't any additional setup beyond setting up your virtual host to point to this directory.
In your Apache's conf/httpd.conf
file, make sure you have your virtual hosts configuration file enabled (it's disabled by default):
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
Then in your conf/extra/httpd-vhosts.conf
file, insert this:
<VirtualHost *:80>
DocumentRoot "/home/path/to/bonemeal"
ServerName bans.example.com
</VirtualHost>
Here's an example server configuration block:
server {
listen 80;
server_name bans.example.com;
root /home/path/to/bonemeal;
index index.html index.htm index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log off;
error_log /var/log/nginx/bans.example.com-error.log error;
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
Simply replace the bans.example.com with the domain you're using.
BoNeMEAL - The ban management web application.