i run apache on Ubuntu. Installed 2 wordpress websites and installed ssl cert on both. All was working fine. I have site1 and site2, site1 i changed in wp general URL to HTTPS. And its working with https.
But have problem with site2, when I add HTTPS for that domain, i got redirect to site1.
And only able to change URL from database from site2.
I hope you guys understand me what i want to ask.
Site2 config in /etc/apache2/sites-available/site2
<VirtualHost *:443> ServerName site2.com ServerAlias www.site2.com DocumentRoot /var/www/site2.com SSLEngine on SSLProtocol all -SSLv2 SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM SSLCertificateFile /var/www/site2ssl/site2.com.crt SSLCertificateKeyFile /var/www/site2ssl/site2.key SSLCertificateChainFile /var/www/site2ssl/site2.crt </VirtualHost>
Same is for site1 just other paths and site1.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!