HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   Single IP multiple websites (

RioSif 9th March 2013 02:25

Single IP multiple websites
I have one ip lets say and lets say 3 websites,,
Websites are created with this ip selected at the "IPv4-Address". DNS created. Websites working ok.
At /etc/httpd/conf/sites-enabled/ i have 000-apps.vhost, 000-ispconfig.conf,,, .
As i checked when i try to access via the browser the ip it goes to I think because of alphabetic sorting. How can i make the ip redirects to or


PS: Centos 6.3, ISPconfig latest

falko 9th March 2013 18:52

You must use domains/hostnames in your browser, not IP addresses.

RioSif 9th March 2013 21:43

Yes, of course, you are right. That's the correct behavior but what if someone pings and finds it's ip address and then hits the ip address and sees instead of
My question is is there a way to control via ispconfig or manually from the configuration of bind9 or httpd or it is just chosen randomly. I just want to know if there is a way. I know the right way to access a website.


tahunasky 10th March 2013 13:45

Change the names of your vhost files:,,

Apache will load the first one (900) and make it the default for the IP, then load 901, and 902, so if the IP is used it the web browser it will go to 900..

I myself usually put a _default.vhost file, to do this job.

You cant control this behavour using ISPConfig.

RioSif 11th March 2013 00:23

You are right, i thought of this cheat too. I was just looking for a more formal way.
Anyway, i'll do like that. Thank you!

All times are GMT +2. The time now is 16:25.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.