Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 9th, 2002, 09:39 PM
skeasor skeasor is offline
Masked Chicken
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 54 skeasor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 52 sec
Reputation Power: 8
Send a message via AIM to skeasor
Yes, another virtual host problem...

Okay, I have one IP address and two domains. How do I get the domains to work properly.

Thanks,
Skeasor
__________________
____________
Thanks,
Skeasor

Got Debian Linux?
www.debian.org

Reply With Quote
  #2  
Old January 9th, 2002, 10:29 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0

Reply With Quote
  #3  
Old January 10th, 2002, 05:28 AM
skeasor skeasor is offline
Masked Chicken
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 54 skeasor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 52 sec
Reputation Power: 8
Send a message via AIM to skeasor
read...

I read that page at least a dozen times. Both of my domains display the exact same content .

Reply With Quote
  #4  
Old January 10th, 2002, 12:39 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
That's why you need to read your other thread -> http://forums.devshed.com/showthrea...8519&forumid=15

Don't just read it, you need to try it, implement it.

Reply With Quote
  #5  
Old January 10th, 2002, 04:51 PM
skeasor skeasor is offline
Masked Chicken
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 54 skeasor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 52 sec
Reputation Power: 8
Send a message via AIM to skeasor
Still no go...

I tried everything. Something seems to be wrong. I did implement it. Heres my setup with One IP and two domain names...

NameVirtualHost my.ip.address

<VirtualHost my.ip.address>
ServerName www.mydomain1.com
DocumentRoot /var/www/mydomain1.com</virtualhost>

<VirtualHost my.ip.address>
ServerName www.mydomain2.com
DocumentRoot /var/www/mydomain2.com
</virtualhost>

Thats what I got out of the manuals at apache.org
I am not sure about the Listen directive tho

Thanks,
Skeasor

Reply With Quote
  #6  
Old January 10th, 2002, 04:57 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> Something seems to be wrong

So what's wrong? What does the log say?

The section of your httpd.conf appears to be fine except DocumentRoot. You should quote the path at all time like so:

DocumentRoot "/var/www/mydomain1.com"

Reply With Quote
  #7  
Old January 10th, 2002, 05:01 PM
skeasor skeasor is offline
Masked Chicken
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 54 skeasor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 52 sec
Reputation Power: 8
Send a message via AIM to skeasor
No errors...

No errors at all...The error log is clean. Whenever I type the url to go to my www.mydomain2.com it shows www.mydomain1.com

Thanks
skeasor

Reply With Quote
  #8  
Old January 10th, 2002, 05:22 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Define UseCanonicalName Off globally.

Reply With Quote
  #9  
Old January 10th, 2002, 05:26 PM
skeasor skeasor is offline
Masked Chicken
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 54 skeasor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 52 sec
Reputation Power: 8
Send a message via AIM to skeasor
not sure...

I am not sure what you mean

skeasor

Reply With Quote
  #10  
Old January 10th, 2002, 05:30 PM
skeasor skeasor is offline
Masked Chicken
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 54 skeasor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 52 sec
Reputation Power: 8
Send a message via AIM to skeasor
nevermind...

Okay, I turned UseCanonicaName off and still nothing works. Both domains display the same webpage. I am pretty sure that my <VirtualHost> directive is setup properly


-skeasor

Reply With Quote
  #11  
Old January 10th, 2002, 05:47 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
1) Restart Apache
2) Check DNS. Make sure www.domain2.com resolves to the same IP as www.domain1.com.
3) Tell us the name of your domains

Reply With Quote
  #12  
Old January 10th, 2002, 05:49 PM
skeasor skeasor is offline
Masked Chicken
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 54 skeasor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 52 sec
Reputation Power: 8
Send a message via AIM to skeasor
checked...

Checked and double checked....
www.susquenita.com
www.nixnational.org

skeasor

Reply With Quote
  #13  
Old January 10th, 2002, 06:37 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> Checked and double checked...

Me too and I see two different sites. Maybe you should empty your browser cache and try again.

BTW, your DNS is highly misconfigured. The SOA and MX. Start a new thread in DNS forum if you have to.

Reply With Quote
  #14  
Old January 10th, 2002, 06:48 PM
skeasor skeasor is offline
Masked Chicken
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 54 skeasor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 52 sec
Reputation Power: 8
Send a message via AIM to skeasor
Thanks for everything..I'll be sure to ask for some help in the DNS forum

skeasor

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Yes, another virtual host problem...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |