Am două site-uri web oferite dintr-o instanță ubuntu.
Asa de, https://siteone.com și https://sitetwo.com ambele merg bine.
Subdomeniul meu a fost bine https://subdomain.siteone.com și https://subdomain.sitetwo.com înainte de a mă muta https://sitetwo.com la cloudfare.
De când am făcut asta Problema este https://subdomain.sitetwo.com afișează https://siteone.com.
Am o adresă IP publică disponibilă.
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName sitetwo.ca
ServerAlias www.sitetwo.ca
DocumentRoot /var/www/boom/
<Directory /var/www/boom/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/sitetwo.ca_error.log
CustomLog ${APACHE_LOG_DIR}/sitetwo.ca_access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.sitetwo.ca [OR]
RewriteCond %{SERVER_NAME} =sitetwo.ca
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName label.sitetwo.ca
DocumentRoot /var/www/html/laravel-db-import/public/
<Directory /var/www/html/laravel-db-import/public/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/label.sitetwo.ca_error.log
CustomLog ${APACHE_LOG_DIR}/label.sitetwo.ca_access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =sitetwo.ca [OR]
RewriteCond %{SERVER_NAME} =label.sitetwo.ca [OR]
RewriteCond %{SERVER_NAME} =www.sitetwo.ca
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>