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:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old October 24th, 2001, 10:49 PM
Chaz Chaz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: ma
Posts: 103 Chaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 24 sec
Reputation Power: 8
Send a message via ICQ to Chaz Send a message via AIM to Chaz Send a message via Yahoo to Chaz
2 Domains 1 ip

I need to point 2 domains to the same ip and have them go to different sites. I read this article on devshed http://www.devshed.com/Server_Side/...bmin/page4.html (WE NEED MORE STUFF LIKE THIS WRITTEN ABOUT WEBMIN) but this article assumes you have an extra ip to spare. I need to know how, with webmin, to point 2 domains to 1 ip and have 2 different sites show up. I had no probelm setting up my 4 ips with my 4 first sites, because they were all on different ips, but with this situation I don't know where to start. Also if there is a better palce for this post let me know.

Last edited by Chaz : October 24th, 2001 at 10:54 PM.

Reply With Quote
  #2  
Old October 24th, 2001, 11:00 PM
4wzdr|X 4wzdr|X is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Location: oShaWa
Posts: 52 4wzdr|X User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
read the other posts in here about virtualhosts

Reply With Quote
  #3  
Old October 25th, 2001, 03:27 AM
Chaz Chaz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: ma
Posts: 103 Chaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 24 sec
Reputation Power: 8
Send a message via ICQ to Chaz Send a message via AIM to Chaz Send a message via Yahoo to Chaz
Where does it tell about a virtual host with webmin? With 2 sites and 1 ip?

Reply With Quote
  #4  
Old October 25th, 2001, 03:35 AM
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
Continue using webmin is wasting your time. You might save some time on learning, but you are stuck with webmin and when you are to administer other system that doesn't have webmin installed, you then are clueless. If you have the time to learn how to configure something in webmin, why not learning how to configure Apache instead?

If you are looking for example of VirtualHost (2 sites and 1 ip), do a search in this forum as it has been asked and answered million times.

Reply With Quote
  #5  
Old October 25th, 2001, 04:56 AM
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
>> By the way my virtual hosts are IP based

The lines you posted are Name-based, not IP-based.

1) First off, you only need to define a line within <VirtualHost> (with a few exception) that's different from the one you defined globally.
Within your first <VirtualHost> block, the line starting from Options down to </Directory> should be define globally (outside <VirtualHost>).
Specifically, never redefine a line that has already been defined globally.

2) When your cgi-bin is ScriptAlias'ed, the Options within that <Directory "/path/to/cgi-bin"> need to set to None. So change this line Options ExecCGI to Options None and AllowOverride All to AllowOverride None.

3) Don't confuse Apache.

>> AddType application/x-httpd-php .php3 .php4 .phtml .php
>> AddType application/x-httpd-php3 .php3

Remove .php3 from x-httpd-php

Reply With Quote
  #6  
Old October 25th, 2001, 03:39 PM
Chaz Chaz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: ma
Posts: 103 Chaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 24 sec
Reputation Power: 8
Send a message via ICQ to Chaz Send a message via AIM to Chaz Send a message via Yahoo to Chaz
With all that said, why are both domains still pointing to the same site? You didn't say anthing about how to fix that.

Reply With Quote
  #7  
Old October 26th, 2001, 01:54 AM
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
>> You didn't say anthing about how to fix that

Because you didn't ask that. This is all you asked: with webmin to point 2 domains to 1 ip and have 2 different sites show up, then 4wzdr|X and I told you to do a search, then you posted a portion of your httpd.conf and I fixed your configuration syntax errors.

>> why are both domains still pointing to the same site?

Based on the insufficient lines you provided, what I can do is guessing.

1) Make sure UseCanonicalName Off
2) And NameVirtualHost 209.217.52.96

Never post your entire httpd.conf here. If you do so, your message will not be replied and you will be banned, at least from me.

Reply With Quote
  #8  
Old October 26th, 2001, 05:41 AM
Chaz Chaz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: ma
Posts: 103 Chaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 24 sec
Reputation Power: 8
Send a message via ICQ to Chaz Send a message via AIM to Chaz Send a message via Yahoo to Chaz
Sorry about that...I was trying to gove you as much info as I could. It won't happen again.

What other sufficient information do you need so you can better help me?

Reply With Quote
  #9  
Old October 26th, 2001, 06:17 AM
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
>> Sorry about that

No, I don't mean that. I was just trying to give you (or anyone else) a warning in advance not to waste resource and bandwidth and post the entire httpd.conf (especially with the comment lines) here.

You can post a URL link to your httpd.conf so we could take a look at. If you are going to fake any info, make sure they make sense.

Reply With Quote
  #10  
Old October 26th, 2001, 04:21 PM
Chaz Chaz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: ma
Posts: 103 Chaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 24 sec
Reputation Power: 8
Send a message via ICQ to Chaz Send a message via AIM to Chaz Send a message via Yahoo to Chaz
Is there any risk in displaying my conf file? If so can I send it to just you?

1) Make sure UseCanonicalName Off

Where do I put this?

2) And NameVirtualHost 209.217.52.96

What deos this mean?

does it mean <VirtualHost 209.217.52.96 domain.com>

Reply With Quote
  #11  
Old October 27th, 2001, 06:13 AM
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
>> Is there any risk in displaying my conf file?

That's why I told you to fake your domain name and IP.

>> If so can I send it to just you?

No. I don't accept any Private Message at this moment.

>> 1) Make sure UseCanonicalName Off
>> Where do I put this?

I thought you already tried this and still doesn't work. Now that you are asking where to put it? You should have asked this in your previous message.

In Apache, when I don't explicityly specify what that directive should go, that means httpd.conf.

>> does it mean <VirtualHost 209.217.52.96 domain.com>

I already bolded the line NameVirtualHost 209.217.52.96. So that's what that line should be.
As for what to put within <VirtualHost>, you can put <VirtualHost 209.217.52.96> or <VirtualHost *>

Reply With Quote
  #12  
Old October 27th, 2001, 04:27 PM
Chaz Chaz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: ma
Posts: 103 Chaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 24 sec
Reputation Power: 8
Send a message via ICQ to Chaz Send a message via AIM to Chaz Send a message via Yahoo to Chaz
If there was a risk in displaying this info do you think we can delete this thread?

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > 2 Domains 1 ip


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 | 
  
 





© 2003-2008 by Developer Shed.