06.12.2018, 14:06
Moinsen,
bin gerade einen kleinen Mailserver am aufsetzen - bleibe jedoch bei rspamd gerade hängen.
DNS Eintrag für "ox.domain.tld" sitzt, vHost sieht so aus:
bin gerade einen kleinen Mailserver am aufsetzen - bleibe jedoch bei rspamd gerade hängen.
DNS Eintrag für "ox.domain.tld" sitzt, vHost sieht so aus:
Code:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName ox.domain.tld
ServerAdmin [email protected]
DocumentRoot /var/www/ox.domain.tld/web/
<Directory "/var/www/ox.domain.tld/web/">
AllowOverride All
Order allow,deny
Allow from all
Require all granted
Options -Indexes
</Directory>
<Location /rspamd>
Order allow,deny
Allow from all
</Location>
RewriteRule ^/rspamd$ /rspamd/ [R,L]
RewriteRule ^/rspamd/(.*) http://localhost:11334/$1 [P,L]
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLCertificateFile /etc/letsencrypt/live/ox.domain.tld/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/ox.domain.tld/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>
Wenn ich mich nicht ganz irre, sollte normalerweise über ox.domain.tld/rspamd das ganze nun ereichbar sein, oder nicht?
Ist es nämlich nicht....Findet jemand den Fehler? ^^
Beste Grüße
//Edit Lösung:
Code:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName ox.domain.tld
ServerAdmin [email protected]
DocumentRoot /var/www/ox.domain.tld/web/
<Directory "/var/www/ox.domain.tld/web/">
AllowOverride All
Order allow,deny
Allow from all
Require all granted
Options -Indexes
</Directory>
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLCertificateFile /etc/letsencrypt/live/oxdomain.tld/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/ox.domain.tld/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
###
### Rspamd
###
RewriteEngine on
RewriteRule ^/rspamd$ /rspamd/ [R]
ProxyPreserveHost On
ProxyPass /rspamd http://localhost:11334/
ProxyPassReverse /rspamd http://localhost:11334/
<Location /rspamd>
AllowOverride All
Order allow,deny
Options -Indexes
Allow from all
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /var/www/ox.domain.tld/.htpasswd
Require valid-user
</Location>
</VirtualHost>
</IfModule>