LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-29-2016, 11:37 AM   #1
kylesouza
LQ Newbie
 
Registered: May 2015
Posts: 9

Rep: Reputation: Disabled
Hosted Website Automatically Redirecting


I am using Apache, 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.
 
Old 01-29-2016, 12:29 PM   #2
kylesouza
LQ Newbie
 
Registered: May 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-29-2016, 01:03 PM   #3
kylesouza
LQ Newbie
 
Registered: May 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-29-2016, 01:17 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Good job and well done Kyle!

Last edited by Habitual; 01-29-2016 at 01:28 PM.
 
  


Reply

Tags
apache, default, redirect, url, wordpress



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant access my hosted website nickn0ck123 Linux - Server 26 12-17-2013 01:27 AM
Anyone on my internet can't access my self-hosted website bengalman211 Linux - Server 6 09-30-2013 09:43 PM
my website hosted from home pmarian Linux - Newbie 9 11-13-2010 01:08 PM
viewing an externally hosted website from within a given website andrews-mark Linux - Server 6 10-07-2008 12:11 AM
Virtual hosted website not found toes Linux - Networking 7 07-14-2006 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration