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

Host Header Name

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  viewing of txt files  
Author Message
kbmay62002

External


Since: Nov 15, 2003
Posts: 1



(Msg. 1) Posted: Sun Nov 16, 2003 1:01 am
Post subject: Host Header Name
Archived from groups: alt>apache>configuration (more info?)

Hello,

I'm not too familiar with web servers.

Is it possible to configure Apache not respond to requests without the
appropriate host header name?

I.E. Get's for www.foo.com (FQDN) will be responded too. However,get's
for 1.2.3.4 (IP address) do not load (or respond with some generic
response like; "No web site is configured at this address.")?

Would virtual host be what I'm looking for?

Tnx,
KB

 >> Stay informed about: Host Header Name 
Back to top
Login to vote
jring

External


Since: Jun 30, 2003
Posts: 154



(Msg. 2) Posted: Sun Nov 16, 2003 7:32 am
Post subject: Re: Host Header Name [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > Is it possible to configure Apache not respond to requests without the
 > appropriate host header name?
 >
 > I.E. Get's for <a style='text-decoration: underline;' href="http://www.foo.com" target="_blank">www.foo.com</a> (FQDN) will be responded too. However,get's
 > for 1.2.3.4 (IP address) do not load (or respond with some generic
 > response like; "No web site is configured at this address.")?
 >
 > Would virtual host be what I'm looking for?

yes, name-based vhosts in particular:

NameVirtualHost 1.2.3.4

<VirtualHost 1.2.3.4:80>
DocumentRoot /path/to/dummy
# here you put the dummy index.html
....
</VirtualHost>

<VirtualHost 1.2.3.4:80>
ServerName <a style='text-decoration: underline;' href="http://www.foo.com" target="_blank">www.foo.com</a>
DocumentRoot /path/to/foo/com
# content dir for foo.com
....
</VirtualHost>

<VirtualHost 1.2.3.4:80>
ServerName <a style='text-decoration: underline;' href="http://www.bar.com" target="_blank">www.bar.com</a>
DocumentRoot /path/to/bar/com
# content dir for bar.com
....
</VirtualHost>

joachim<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Host Header Name 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Odd apache header (~~~~~~~~~~~~~~:) - Anyone know what this header is? My copy of apache returns it, and I've seen others do it too. Richard.

HTTP Response header - Hello everybody I have a problem to set HTTP response header. I'm using apache httpd as a frontend of my application server. My application server send some http headers, that have to be to modified. I could not use mod_headers because "append&quot...

Apache HTML Header Injection - Hi, Does anyone know of a way that I can inject some html code into the header of every html document requested from my Linux Apache Web Server. I am developing a very simple PHP/Mysql company intranet and would like an easy way to insert the company..

Apache 2 + mod_rewrite + content-length HTTP header - Hi, I use Apache 2 as a front server for a Zope web app, using mod_rewrite. Apache removes the content-length header from the HTTP response provided by Zope, and this is an issue in some situations as viewing a PDF file through MS Internet Explorer. ..

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 ]