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

how can I define default virtual host using IP in url ?

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  SSL with Apache ?'s  
Author Message
varlog2002

External


Since: Apr 28, 2004
Posts: 2



(Msg. 1) Posted: Wed Apr 28, 2004 4:54 pm
Post subject: how can I define default virtual host using IP in url ?
Archived from groups: alt>apache>configuration (more info?)

I'm using apache 1.3 with several virtual host.
Each host has a DNS record from dyndns like foo.com, elsa.org,
example.edu,... and they have all the same IP adresse (24.50.24.50 for
example).

Using url http://foo.com I can correctly access to foo.com website,
and so on with others virtual host.

But using url http://24.50.24.50 I would like apache to serve a
default virtual host I can choose, for example elsa.org.

I tried to put the first virtual host in httpd.conf as default virtual
host, but that does not work.

How can I get apache serve the website (virutal host) I want when
usint its IP in the url ? How can I do that ?

Thanx in advance for your help.
John

 >> Stay informed about: how can I define default virtual host using IP in url ? 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Thu Apr 29, 2004 7:36 am
Post subject: Re: how can I define default virtual host using IP in url ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Var Log <varlog2002.DeleteThis@yahoo.fr> wrote:
 > But using url <a style='text-decoration: underline;' href="http://24.50.24.50" target="_blank">http://24.50.24.50</a> I would like apache to serve a
 > default virtual host I can choose, for example elsa.org.

Use the _default_ option in the VirtualHost definition you want to
be the default one.

Davide

--
| Time flies like an arrow, Fruit flies like a banana
|
|
|<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: how can I define default virtual host using IP in url ? 
Back to top
Login to vote
varlog2002

External


Since: Apr 28, 2004
Posts: 2



(Msg. 3) Posted: Thu Apr 29, 2004 8:00 am
Post subject: Re: how can I define default virtual host using IP in url ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi <davideyeahsure.TakeThisOut@onlyforfun.net> wrote in message news:<c6q0o7$f65ib$3@ID-18487.news.uni-berlin.de>...
 > Var Log <varlog2002.TakeThisOut@yahoo.fr> wrote:
  > > But using url <a style='text-decoration: underline;' href="http://24.50.24.50" target="_blank">http://24.50.24.50</a> I would like apache to serve a
  > > default virtual host I can choose, for example elsa.org.
 >
 > Use the _default_ option in the VirtualHost definition you want to
 > be the default one.
 >
 > Davide

Thanx Davide.
And I tell myself: RTFM.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: how can I define default virtual host using IP in url ? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Default/Virtual server ? - I am new to apache 2.0.40 running on Linux and although I have it working I am unsure what is the best way configure 2 IP based hosts. Example configurations: 1. One IP as default server, one as virtual or 2. One IP as virtual, 2nd IP as virtual, wit...

Virtual Host - Hej Virtual host - what's that mean? I have installed Apache-Tomcat inside intranet. I want that my Apache-Tomcat listen other host inside the intranet for example : gateway! Other users from world not see my server, becouse is inside the intranet. ..

virtual host - Hi, I'm a newbie on Apache, so I need help for the configuration of Virtual Hosts. My english is bad, I'm sorry and I hope you can understand me... I've seen the documentation and I've tried many times but my configuration doesn't works... I've a lots....

Virtual Host - Does anyone have any idea why this isn't working? The following virtual host info in my httpd.conf works when I have someone try it from my IP (I assume cause it's the default ), but not when I try the domain www.mysite.com or it's aliases. ..

Virtual host and cgi Help - iam running slackware 9.0 and apache1.3 webserver. i have set up virtualhost, and have 2 domains on my server, one of my domains(mydoamin2) canīt execute cgi, the other can. I get this in my error.log "Options execCGI is off in this directory"...
   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 ]