Frage:
Aus irgendwelchen Gründen komme ich nicht mit
https://subdomain2.domain1.tld
auf
/var/www/html/subdomain2.domain1.tld/cms?
Statt dessen öffnet sich immer
DocumentRoot /var/www/html/subdomain1.dynamicdnsprovider.tld
Was mache ich falsch??
nslookup subdomain2.domain1.tld
Code: Alles auswählen
Server: 127.0.1.1
Address: 127.0.1.1#53
Non-authoritative answer:
subdomain2.domain1.tld canonical name = subdomain2.dynamicdnsprovider.tld.
Name: subdomain2.dynamicdnsprovider.tld
Address: 188.109.x.x
Code: Alles auswählen
<VirtualHost *:80>
ServerAlias *
RewriteEngine On
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [redirect=301]
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName subdomain1.dynamicdnsprovider.tld:443
ServerName subdomain1.domain1.tld:443
ServerName 192.168.x.x:443
ServerAlias subdomain1.domain1.tld subdomain1.dynamicdnsprovider.tld 192.168.x.x
ServerAdmin webmin@domain1.tld
Alias /blog /var/www/html/subdomain1.dynamicdnsprovider.tld/blog
Alias /wiki /var/www/html/subdomain1.dynamicdnsprovider.tld/wiki
Alias /oc /var/www/html/subdomain1.dynamicdnsprovider.tld/oc
Alias /cms /var/www/html/subdomain1.dynamicdnsprovider.tld/cms
DocumentRoot /var/www/html/subdomain1.dynamicdnsprovider.tld
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
BandwidthModule On
ForceBandWidthModule On
Bandwidth all 604800
ErrorDocument 510 /errors/maxconexceeded.html
BandWidthError 510
LargeFileLimit .avi 1 200000
LargeFileLimit .mpg 1 200000
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/subdomain1.dynamicdnsprovider.tld/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/subdomain1.dynamicdnsprovider.tld/apache.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
<Directory /var/www/html/subdomain1.dynamicdnsprovider.tld/blog>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
<Directory /var/www/html/subdomain1.dynamicdnsprovider.tld/wiki>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
<Directory /var/www/html/subdomain1.dynamicdnsprovider.tld/cms>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
<Directory /var/www/html/subdomain1.dynamicdnsprovider.tld/oc>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
DAV Off
Satisfy Any
</Directory>
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>
<VirtualHost *:443>
DocumentRoot /var/www/html/subdomain2.domain1.tld/cms
ServerName subdomain2.domain1.tld:443
ServerName subdomain2.dynamicdnsprovider.tld:443
ServerAlias subdomain2.dynamicdnsprovider.tld 192.168.x.x
ServerAdmin webmin@domain1.tld
SSLCertificateFile /etc/letsencrypt/live/www.domain1.tld/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.domain1.tld/privkey.pem
SSLProtocol All -SSLv2 -SSLv3
SSLHonorCipherOrder On
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
</VirtualHost>
</IfModule>