LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-20-2019, 10:13 PM   #1
Arty Ziff
Member
 
Registered: May 2008
Location: Tacoma, WA
Distribution: CentOS and RHEL
Posts: 124

Rep: Reputation: 15
Problem Setting Up Virtual Domains with Apache


I am running CentOS v7 with Apache.

I generally follow this tutorial for LAMP setup:

https://www.howtoforge.com/tutorial/...che-mysql-php/

I set up Virtual Domains pretty much according to this tutorial:

https://www.digitalocean.com/communi...er-on-centos-7

My problem:

I have set up exactly one Virtual Domain (though I plan on an additional V. domain). "MyDomain.COM". But when I navigate to the domain in a browser, it "forwards" to "MyDomain.NET".

I have checked my DNS records, and they are correct. I even deleted the DNS record for "MyDomain.NET". Didn't change anything.

And, the browser tells me "Hmm. We’re having trouble finding that site," after landing on "MyDomain.NET". Well, not unexpected, I haven't set up a virtual domain for "MyDomain.NET".

Additionally, the DNS records point appropriately to the DNS servers at my host (Superb.net).

I think my Apache configuration is good. Perhaps a server configuration issue?

What am I missing?

Last edited by Arty Ziff; 10-20-2019 at 10:15 PM.
 
Old 10-20-2019, 10:42 PM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Can you provide the apache configuration you have for your virtual domain?

Without actual and real configuration to look at, we're left with guesswork. And, given you say everything is correct, I've not much left to guess with.

Last edited by phil.d.g; 10-20-2019 at 10:45 PM.
 
1 members found this post helpful.
Old 10-20-2019, 10:51 PM   #3
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,735

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
^ Yes. We need to see the VirtualDomain for mydomain.com
Is there any reference to mydomain.net in the apache configuration? Where? and what does it say?

Certainly you can obfuscate the actual domain name, but please post (copy/paste - in code tags) the actual entries in your httpd.config. Trying to tell us what it is doesn't usually work...show us. Please.

We may also need to see the dns information for mydomain.com and mydomain.net.
Oh. You deleted the DNS for mydomain.net (!) so that's the cause of the "not found" error. Has nothing to do with apache...
 
  


Reply



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
Email server with webmin for virtual users and virtual domains. atux_null Linux - Server 3 01-02-2017 03:49 PM
Multiple emails accounts(with different from domains) on multiple domains on 1 server locoputo Linux - Server 0 04-12-2009 06:29 PM
Multiple domains in LDAP and 1 samba server for all domains, what to do? xnomad Linux - Server 1 11-14-2008 09:12 AM
Sub Domains & Multiple Domains (Apache) lugos Linux - Server 1 09-01-2006 10:22 PM
help setting up a pop3 server for virtual domains using qmail kumarsundaram Linux - Software 0 01-23-2006 07:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:21 AM.

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