Skip to content

Instantly share code, notes, and snippets.

@Galixte
Created July 31, 2014 21:04
Show Gist options
  • Save Galixte/b522630e4224650b3d4b to your computer and use it in GitHub Desktop.
Save Galixte/b522630e4224650b3d4b to your computer and use it in GitHub Desktop.
Debian 7.6 - Apache 2.2.22 - Cakebox - Nouvelle installation - Page blanche
Fichier : /etc/apache2/sites-available/default
<VirtualHost *:80>
ServerAdmin utilisateur@domaine.com
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Redirect 301 / http://domaine.com/
</VirtualHost>
Fichier : /var/www/cakebox/default.php
<?php
/*
General configuration of Cakebox
*/
$app["cakebox.root"] = "/home/utilisateur/downloads/"; // Root directory Cakebox have to scan
$app["cakebox.access"] = "/access/"; // Alias used in web server for direct access
/*
Directory settings
*/
$app["directory.ignoreDotFiles"] = true;
$app["directory.ignore"] = "//"; // Regex for files exclusion. For exemple : "/(\.nfo|\.test)$/"
/*
Web player settings
*/
$app["player.default_type"] = "html5"; // html5 or divx or vlc
$app["player.auto_play"] = "false";
/*
User rights
*/
$app["rights.canPlayMedia"] = true;
$app["rights.canDownloadFile"] = true;
$app["rights.canArchiveDirectory"] = false;
$app["rights.canDelete"] = false;
/*
Betaseries account
NB: Ask API key here http://www.betaseries.com/api/
*/
$app["bs.login"] = "";
$app["bs.passwd"] = "";
$app["bs.apikey"] = "";
Fichier : /etc/apache2/sites-available/files.domaine.com
<VirtualHost *:80>
ServerAdmin utilisateur@domaine.com
ServerName files.domaine.com
SetEnv APPLICATION_ENV production
DocumentRoot "/var/www/cakebox/public"
<Directory "/var/www/cakebox/public">
Options Indexes MultiViews FollowSymLinks
AllowOverride none
Order allow,deny
Allow from all
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</Directory>
Alias /access /home/utilisateur/downloads/
<Directory /home/utilisateur/downloads/>
Order allow,deny
Allow from all
Header set Content-Disposition "attachment"
</Directory>
ErrorLog "/var/log/apache2/files.domaine.com-error.log"
CustomLog "/var/log/apache2/files.domaine.com-access.log" common
</VirtualHost>
/etc/apache2/sites-available/transmission
<VirtualHost *:80>
ServerName dl.domaine.com
RewriteEngine On
RewriteRule ^/$ /web/ [L,R=301]
ProxyPass / http://127.0.0.1:9091/
ProxyPassReverse / http://127.0.0.1:9091/
</VirtualHost>
/etc/apache2/sites-available/domaine.com
<VirtualHost *:80>
ServerName domaine.com
ServerAdmin utilisateur@domaine.com
DocumentRoot /var/www/domaine.com
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
/etc/bind/domaine.com
$TTL 1W
@ IN SOA ns.xxx.eu. contact.domaine.com. (
2014073101 ; Serial
8H ; Refresh
2H ; Retry
3W ; Expire
12H ; Minimum TTL
)
IN NS ns.xxx.eu.
IN NS ns.kimsufi.com.
IN MX 10 domaine.com.
IN A xxx.xxx.xxx.xxx
IN AAAA xxxx:xxxx:x:xxxx::1
IN TXT "v=spf1 mx a ip4:xxx.xxx.xxx.xxx/24 ip6:xxxx:xxxx:x:xxxx::1/128 -all"
IN SPF "v=spf1 mx a ip4:xxx.xxx.xxx.xxx/24 ip6:xxxx:xxxx:x:xxxx::1/128 -all"
www IN CNAME domaine.com.
smtp IN CNAME domaine.com.
imap IN CNAME domaine.com.
pop IN CNAME domaine.com.
dl IN CNAME domaine.com.
ftp IN CNAME domaine.com.
files IN CNAME domaine.com.
mail._domainkey.domaine.com. IN TXT "v=DKIM1; k=rsa; p=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment