binding XAMPP to just a single IP (SOLVED)

Problems with the Windows version of XAMPP, questions, comments, and anything related.

binding XAMPP to just a single IP (SOLVED)

Postby island55 » 06. October 2011 22:53

hello,

i am using XAMPP 1.7.4 on Windows 2008 Server R2 - my server has 2 IPs and i would like to host 2
different sites - 1 site per IP (so i can point DNS to them) i have searched the site as well as google
and i havent came up with anything. can someone please tell me or point me in the direction where
i can resolve this issue!

thanks!

scott
island55
 
Posts: 4
Joined: 06. October 2011 22:35

Re: binding XAMPP to just a single IP

Postby Sharley » 06. October 2011 22:57

Use an IP based VirtualHost:
A forum search for vhost and/or virtualhost or here:
http://httpd.apache.org/docs/2.2/vhosts/

Good luck. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: binding XAMPP to just a single IP

Postby island55 » 06. October 2011 23:14

ok let me say this --

i want XAMPP to run 1 website on just 1 IP, the other website is being ran from another program
so i dont need to have XAMPP running both websites. does this change anything? so basically i just
want XAMPP running on 1 IP and not running 2 sites on 2 different IPs. (just 1 site on 1 IP)

thanks for the quick reply!!

scott
island55
 
Posts: 4
Joined: 06. October 2011 22:35

Re: binding XAMPP to just a single IP

Postby Sharley » 06. October 2011 23:21

This other program, is it a web server on the same PC?

You may have port conflicts if you try and run both servers at the same time and they are both using the same ports.

Good luck. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: binding XAMPP to just a single IP

Postby Altrea » 06. October 2011 23:22

That depends on the ports the other program uses.
configure apache to listen to just the one ip. Thats the important part.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: binding XAMPP to just a single IP

Postby island55 » 07. October 2011 00:01

XAMPP will be hosting a site on IP#1 on the default port of 80.
this other hosting program will be hosting a site on IP#2 on port 30000

BUT i do not want IP#1 to work with port 30000 and i do not want IP#2 to work with default port 80
island55
 
Posts: 4
Joined: 06. October 2011 22:35

Re: binding XAMPP to just a single IP

Postby hackattack142 » 07. October 2011 01:11

i do not want IP#2 to work with default port 80

You can tell Apache to listen only on a specific IP address. If you open the "xampp/apache/conf/httpd.conf" file, you can edit the line "Listen 80" to "Listen IP#1:80" with your desired IP, and restart Apache. I do not know what you are hosting the other site with but you might be able to do a similar restriction.
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 701
Joined: 20. May 2011 23:29
Operating System: Windows 7 Ultimate SP1 64-Bit

Re: binding XAMPP to just a single IP

Postby island55 » 07. October 2011 02:11

hackattack142 wrote:
i do not want IP#2 to work with default port 80

You can tell Apache to listen only on a specific IP address. If you open the "xampp/apache/conf/httpd.conf" file, you can edit the line "Listen 80" to "Listen IP#1:80" with your desired IP, and restart Apache. I do not know what you are hosting the other site with but you might be able to do a similar restriction.



YESSSSSSSSSSS!!

brilliant, this is what i was wanting! thanks guys for all your help
island55
 
Posts: 4
Joined: 06. October 2011 22:35


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 114 guests