Tweakers,
Ik heb thuis een htpc draaien, met daarop oa. sabnzbd, sickbeard, couchpotato en apache. Dit op een Ubuntu host.
Wat wil ik? http://sabnzb.domein.nl, sickbeard.domein.nl, couchpotato.domein.nl en domein.nl gewoon kunnen bereiken, met de betreffende app (of website) achter de juiste url.
Wat lukt er niet? Het bovenstaande.
Even de 3 site configs van sabnzbd, http en https:
sabnzbd apache-site:
En van domein.nl
En de SSL domein.nl
Inclusief een proxypass voor hoe het nu geconfigureerd is (domein.nl/sabnzbd).
Wat gebeurt er op dit moment? Als ik naar sabnzb.domein.nl ga wordt ik automatisch naar domein.nl geleid, inhoudelijk althans, de URL blijft staan op sabnzb.domein.nl
De proxypass sites werken nog steeds.
Ik heb vergelijkbare sites (zie sabnzbd) voor couchpotato en sickbeard, maar nu niet ge-enabled (eerst dit maar eens oplossen).
Overigens krijg ik bij reloaden van apache deze error;
Waar loop ik vast? Wat doe ik verkeerd?
Ik heb thuis een htpc draaien, met daarop oa. sabnzbd, sickbeard, couchpotato en apache. Dit op een Ubuntu host.
Wat wil ik? http://sabnzb.domein.nl, sickbeard.domein.nl, couchpotato.domein.nl en domein.nl gewoon kunnen bereiken, met de betreffende app (of website) achter de juiste url.
Wat lukt er niet? Het bovenstaande.
Even de 3 site configs van sabnzbd, http en https:
sabnzbd apache-site:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
| <VirtualHost *:80>
ServerName sabnzb.domein.nl
<Location />
RedirectPermanent / https://sabnzb.domein.nl/
</Location>
</VirtualHost>
<VirtualHost *:443>
ServerName sabnzb.domein.nl
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
SSLEngine on
SSLProxyEngine On
SSLCertificateFile /etc/ssl/certs/serversab.crt
SSLCertificateKeyFile /etc/ssl/private/serversab.key
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://localhost:9094/
ProxyPassReverse / http://localhost:9094/
RewriteEngine On
RewriteRule ^/$ https://sabnzb.domein.nl/sabnzbd/ [R,L]
<Location />
Order deny,allow
Allow from all
</Location>
ErrorLog /var/log/apache2/nzb-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel info
CustomLog /var/log/apache2/nzb-access.log combined
CookieLog /var/log/apache2/nzb-cookie.log
</VirtualHost> |
En van domein.nl
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
| <VirtualHost *:80>
ServerAdmin moizie@mail.com
ServerName domein.nl
RedirectPermanent / https://domein.nl/
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
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
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost> |
En de SSL domein.nl
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
| <IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin moizie@mail.com
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
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}/ssl_access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
SSLEngine on
SSLCertificateFile /etc/ssl/certs/server.crt
SSLCertificateKeyFile /etc/ssl/private/server.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
ServerName domein.nl
ProxyPass /couchpotato/ http://localhost:5050/couchpotato/
ProxyPassReverse /couchpotato/ http://localhost:5050/couchpotato/
ProxyPass /webaccess/ http://localhost:10000/
ProxyPassReverse /webaccess/ http://localhost:10000/
ProxyPass /sickbeard/ http://localhost:8081/sickbeard/
ProxyPassReverse /sickbeard/ http://localhost:8081/sickbeard/
</VirtualHost>
</IfModule> |
Inclusief een proxypass voor hoe het nu geconfigureerd is (domein.nl/sabnzbd).
Wat gebeurt er op dit moment? Als ik naar sabnzb.domein.nl ga wordt ik automatisch naar domein.nl geleid, inhoudelijk althans, de URL blijft staan op sabnzb.domein.nl
De proxypass sites werken nog steeds.
Ik heb vergelijkbare sites (zie sabnzbd) voor couchpotato en sickbeard, maar nu niet ge-enabled (eerst dit maar eens oplossen).
Overigens krijg ik bij reloaden van apache deze error;
code:
1
| [Tue Aug 21 15:12:43 2012] [warn] _default_ VirtualHost overlap on port 443, the first has precedence |
Waar loop ik vast? Wat doe ik verkeerd?