Click to See Complete Forum and Search --> : Apache Guide: Redirect or virtual hosting


KevinReichard
07-17-2002, 04:01 PM
These talkbacks are in response to the article Apache Guide: Configuring Your Apache Server Installation (http://www.serverwatch.com/stypes/servers/article.php/1126821).

Brian writes:
I'm new be nice! I have read 3 books and can't get virtual hosting to work i.e. a them.me.com to redirect to www.me.com/them/site My site is written in Java with no static pages. Any help would be great

[I]Rick Erlandson responds:
It is easiest to let apache do it for you. Edit /etc/httpd/conf/httpd.conf. (which might be elsewhere!) Add the line "NameVirtualHost ip.address.of.host"
then you create directives (sometimes in an included file) that include the website URL and its location on the server. That is all there is to it. Well, restart apache when you are done. :-) There are examples in the httpd.conf file to guide you. Hope this helps.