|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
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.
__________________
Charles LaRocca 321Webspace.com 321Webmaster.com 321Templates.com 321Graphics.com Last edited by Chaz : October 24th, 2001 at 10:54 PM. |
|
#2
|
|||
|
|||
|
read the other posts in here about virtualhosts
|
|
#3
|
|||
|
|||
|
Where does it tell about a virtual host with webmin? With 2 sites and 1 ip?
|
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
>> 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 |
|
#6
|
|||
|
|||
|
With all that said, why are both domains still pointing to the same site? You didn't say anthing about how to fix that.
|
|
#7
|
|||
|
|||
|
>> 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. |
|
#8
|
|||
|
|||
|
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? |
|
#9
|
|||
|
|||
|
>> 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. |
|
#10
|
|||
|
|||
|
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> |
|
#11
|
|||
|
|||
|
>> 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 *> |
|
#12
|
|||
|
|||
|
If there was a risk in displaying this info do you think we can delete this thread?
|
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > 2 Domains 1 ip |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|