add example virtualHosts
for apache, nginx and lighttpd
make sure a special request to status-polling will be excluded from access-log
make sure config/config_local.ini will not get served
make sure all relevant mimeTypes for music-files are correctly set by the server
Apache exclude status-poll-request from log
SetEnvIf Request_URI "/(mpdstatus)|(xwaxstatus)$" dontlog
CustomLog /path/to/your/logs/access_log combined env=!dontlog
Apache 2.4 protect sensitive file from beeing served
<Files ~ "config_local\.ini$">
Require all denied
</Files>
Apache 2.2 protect sensitive file from beeing served
<Files ~ "config_local\.ini$">
Order deny,allow
Deny from all
</Files>
I would appreciate a full vhost example too please.
@brendan-pike which webserver do you use?
Currently on this set-up I use Apache 2.4, I also use Nginx widely and will switch later.
This works for apache 2.4
<VirtualHost *:80>
ServerName slim.pd
DocumentRoot /var/www/slimpd/www
<Directory /var/www/slimpd/www/>
AllowOverride All
Options Indexes FollowSymLinks
Require all granted
</Directory>
<Files ~ "config_local\.ini$">
Require all denied
</Files>
ErrorLog /var/www/slimpd/logs/error_log
SetEnvIf Request_URI "/(mpdstatus)|(xwaxstatus)$" dontlog
CustomLog /var/www/slimpd/logs/access_log combined env=!dontlog
AddType application/x-httpd-php .php
</VirtualHost>