vllt kann mir jemand weiterhelfen und zwar geht es um folgendes:
Ich habe einen Pi-hole bei mir netzwerk laufen, dort habe ich unter local dns --> dns records folgendes stehen:
nas.home.tld --> 192.168.178.201
(dyndns adresse) --> 192.168.178.201
unter cname records, habe ich eingetragen
grocy.nas.home.tld --> nas.home.tld
sync.nas.home.tld --> nas.home.tld
Wenn ich jetzt im lokalen netzwerk sync.nas.home.tld oder grocy.nas.home.tld eingebe, erscheinen die jeweiligen Seiten dazu, meiner Meinung nach ist das alles korrekt.
Wenn ich aber nun im lokalen netzwerk die dyndns adresse eingebe, also ohne / hinten dran, dann erscheint die Seite von grocy.nas.home.tld
Die vhost conf von grocy:
Code: Alles auswählen
<VirtualHost *:80>
ServerAdmin root@nas
ServerName grocy.nas.home.tld
DocumentRoot /var/www/grocy/public
# <IfModule alias_module>
# Alias /grocy /var/www/grocy/public/
<Directory /var/www/grocy/public/>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Order allow,deny
allow from all
Require all granted
</Directory>
# </IfModule>
# ProxyPass /grocy/ http://nas.home.tld/grocy/public/
# ProxyPassReverse /grocy/ http://nas.home.tld/grocy/public/
ErrorLog ${APACHE_LOG_DIR}/grocy-error.log
CustomLog ${APACHE_LOG_DIR}/grocy-access.log combined
</VirtualHost>
Code: Alles auswählen
<VirtualHost *:80>
ServerName sync.nas.home.tld
ServerAdmin root@nas
ErrorDocument 404 /404.html
ProxyPass / http://nas.home.tld:8384/
ProxyPassReverse / http://nas.home.tld:8384/
ErrorLog ${APACHE_LOG_DIR}/sync-error.log
CustomLog ${APACHE_LOG_DIR}/sync-access.log combined
</VirtualHost>