Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Site automatically redirecting |
|
Author |
|
thekylesouza
Joined: 29 Jan 2016 Posts: 4 Location: Houston, TX, USA
|
Posted: Fri 29 Jan '16 19:33 Post subject: Site automatically redirecting |
|
|
I am using Apache 2.4 on Ubuntu 14.04, until yesterday I only wanted to host one wordpress website on my server, now I want to host two. I copied the 000-default.conf file (and the SSL conf, I have a certificate for both domains), made changes, and enabled the site. Now the second site (site2) is working fine, but when I try to visit my other site (site1), the one that was there first, it automatically redirects to my new site. If I rename the folder for site1 the redirect still happens, when I disable site1 in apache it still redirects... It seems that somehow site2 has become the primary/default site for the server, but I cannot figure out where/how.
Any help is appreciated, I can provide file contents as needed, I am new to the forum (bear with me as I learn how to use it).
Thank you in advance. |
|
Back to top |
|
thekylesouza
Joined: 29 Jan 2016 Posts: 4 Location: Houston, TX, USA
|
Posted: Fri 29 Jan '16 20:29 Post subject: |
|
|
Two new pieces of info:
1. https://pandplandservice.com/owncloud does not redirect, even though https://pandplandservice.com does.
2. I found this in the apache error log (I set it to debug): No matching SSL virtual host for servername pandplandservice.com found (using default/first virtual host)
But I do have ServerName pandplandservice.com setup in a conf file. |
|
Back to top |
|
thekylesouza
Joined: 29 Jan 2016 Posts: 4 Location: Houston, TX, USA
|
Posted: Fri 29 Jan '16 21:04 Post subject: |
|
|
Fixed it. I had to add the ServerName to the SSL conf file for the two sites then rerun the WordPress config setup for the site that wasn't working. |
|
Back to top |
|
|
|
|
|
|