Page 1 of 1

XAMPP+BIND

PostPosted: 13. October 2010 16:46
by iDoux
Well here is the scenario...
I have three machines, one is DNS that have BIND, the second have the XAMPP install, and the other one is just a PC, we use it to check our pages, the first two uses Centos 4 and the other one Windows XP, we navigate with Firefox 3.
Now our problem is that we have our vhost file configured with two vhosts, site1 and site2, the both are inside htdocs, but when i try to access site1 it goes to the htdocs root instead of going to the site1 folder, ihave to say that site1 is the name of the machine running XAMPP too, i dont know if that's a problem. Well here is my httpd-vhost.conf and my directory tree:
*****
/opt
----/lampp
--------/htdocs
------------/site1
------------/site2
*****
# Use name-based virtual hosting.
NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin myname@example.com
DocumentRoot /opt/lampp/htdocs/site1
ServerName site1
ServerAlias site1
ErrorLog logs/site1-error_log
CustomLog logs/site1-access_log common
</VirtualHost>

<VirtualHost *:80>
ServerAdmin myname@example.com
DocumentRoot /opt/lampp/htdocs/site2
ServerName site2
ServerAlias site2
ErrorLog logs/site2-error_log
CustomLog logs/site2-access_log common
</VirtualHost>
*****

Now the vhost is well configured i think, but how i configure the bind?
Again i must say that is just for internal purpose so we dont need a domain like .com or .net after the site name i think....
Well hope you can help me... im still reading posts and articles about this and nothing seems to work...

Re: XAMPP+BIND

PostPosted: 13. October 2010 21:04
by Nobbie
iDoux wrote:Now the vhost is well configured i think, but how i configure the bind?
Again i must say that is just for internal purpose so we dont need a domain like .com or .net after the site name i think....


"Bind" is not part of the Xampp Package, so I dont expect any support for it in this forum.

Anyway, i have a certain feeling that "bind" is a clear overkill for a simple task like that. I would simply go for the "old-fashioned" way and insert a couple of lines in the hosts file (/etc/hosts) of your server (and every client), instead of setting up a full featered DNS Server.

Re: XAMPP+BIND

PostPosted: 13. October 2010 21:31
by iDoux
Nobbie wrote:"Bind" is not part of the Xampp Package, so I dont expect any support for it in this forum.

Anyway, i have a certain feeling that "bind" is a clear overkill for a simple task like that. I would simply go for the "old-fashioned" way and insert a couple of lines in the hosts file (/etc/hosts) of your server (and every client), instead of setting up a full featered DNS Server.


Sorry i didnt put this in here, but we had the XAMPP in a Windows Server 2003 running and withouth any problem with a Windows DNS Server, then we changed everything to Centos and the problems started, so i thought maybe just making some adjustments in the XAMPP configuration everything would be fine, and yep we do need that DNS Server, in the example is just three machines but here at work, the DNS is for at least 60 PCs and the XAMPP is the Intranet Server... but what you tell me is that i have to go one by one PC and configure every host file?
Well in the case that i cant get help here, can you give me some link to a bind forum that is related to this problem?
Thanks in advance.

Re: XAMPP+BIND

PostPosted: 13. October 2010 21:59
by Nobbie
iDoux wrote: can you give me some link to a bind forum that is related to this problem?


Sorry, but I cannot.

Re: XAMPP+BIND

PostPosted: 04. August 2011 16:10
by buttonmasher
Hey Guys,

Not coming here with the intention of reviving year old posts, but i have an answer so I thought I might as well post it. There is a forum called Tek Tips that has a lot of people with knowledge on BIND. Hopefully this link is still helpful, I'll break it up if for some reason you think I'm trolling, this should be a legitimate help. I found this forum while I was looking for help with excel recovery after I had a disastrous computer crash, and found there to be a ton of useful information.

http: //www.tek-tips.com/ threadminder.cfm ?pid=950

Re: XAMPP+BIND

PostPosted: 08. August 2011 01:14
by JonB
but, of course that is what you are doing, along with your other-embedded off-topic SPAM

:shock:

Re: XAMPP+BIND

PostPosted: 07. February 2012 17:48
by iDoux
After more than a year, i check for this kind of problem again, that site is really sueful, thanks a lot...
i was looking for an answer and start reading this psot, but i dint saw the author, and i say to myself: "wow, this guy is really fuck up, like me, lets see what they said to him..." then i found out it was me in 2010... damn...

Re: XAMPP+BIND

PostPosted: 07. February 2012 19:43
by Altrea
Thank you very much for your post.
You just made my day :lol: