By 420
Hello,
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.
Also now when i put https://site2.com in address bar its showing me content from site1 but domain is https://site2.com
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.
Thanks
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!
I find solution for this. And it works now.
nano /etc/apache2/ports.conf
Just added to ports.conf below NameVirtualHost *:80
NameVirtualHost *:443
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.