Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

servers IP address shows the first site in virtualhost list

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  ERRORDOCUMENT and request_URI problem  
Author Message
user31

External


Since: Nov 07, 2003
Posts: 31



(Msg. 1) Posted: Tue Sep 23, 2003 12:56 am
Post subject: servers IP address shows the first site in virtualhost list
Archived from groups: alt>apache>configuration (more info?)

I am running several websites.

Which ever website appears first in my virtual host file shows up when the
servers ip address is typed into a browser.

Is this normal?.
Because i'm running several sites, I don't really want any of the sites to
come up when the ip of the server is used so ive temporarily made up a fake
site for the first virtual host
(see below)

Is this what you do or is there a more appropriate way to stop the servers
ip address bringing up one of your sites ?


<VirtualHost *>
ServerAdmin webmaster.TakeThisOut@xxxfakesitexxxxxxxxxxx.co.uk
DocumentRoot /usr/home/none
ServerName www.xxxfakesitexxxxxxxxxxx.co.uk
ErrorLog logs/xxxfakesitexxxxxxxxxxx.co.ukerror_log
CustomLog logs/xxxfakesitexxxxxxxxxxx.co.uk-access.log "combined"
scriptalias /cgi-bin/ /usr/home/xxxfakesitexxxxxxxxxxx.co.uk/cgi-bin/
DirectoryIndex index.htm index.html index.php
</VirtualHost>

 >> Stay informed about: servers IP address shows the first site in virtualhost list 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Tue Sep 23, 2003 9:16 am
Post subject: Re: servers IP address shows the first site in virtualhost list [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mike <me.TakeThisOut@privacy.net> wrote:
 > Is this normal?.

Yes it is. Since Apache can't distinguish which virtual host to use when
a IP is typed (and not the FQDN) he will show the first one.

 > I don't really want any of the sites to come up when the ip of the server

Then add a phony first virtual host without any FQDN and set his
home page to an "error" page of some sort.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: servers IP address shows the first site in virtualhost list 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Error : could not bind to address 0.0.0.0:80 - Hi, I am beginer in use with apache. I have installing apache2 for just developping php script in local. When i would start apache2, i have this message : Starting httpd2: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 n...

page cannot be displayed with "www.yyy.com" address - I'm able to access the site when I prefix it with "http://". What configuration parameter allows me to access the site just using "www.yyy.com" instead of having me or other users type in the full "http://www.yyy.com"

browser address line not updated - I know that I have found/read information about this before, but cannot re-find it. If someone can point me to the url or directive(s) I'll do the reading/research. The url/address in the browser does not change from: www.mysite.org even though the user...

Submitting any website form always comes from same email a.. - I have several sites setup in apache/unix. each time any of the websites submits a perl form using: http://nms-cgi.sourceforge.net/ the form always comes from the same false email address: nobody@www.xxx.com I didnt set this server up and im not to...

Help - apache don't use right domain name form mail sender.. - Hello, My linux machine have two domain names: 1. a bogus domain name: lion.mydomain.home, and 2. a real domain name: mydomain.com. I created zone files for both of the domains, and they both have entries in named.conf, so they all work well. My..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]