>i was trying to configure my apache 1.3 running in red hat linux 6, in order
>to enable virtual server.I have only 1 IP address and want to run 2
>web-sites say www.domain.com and www.otherdomain.com for that, i read the
>apache documentation, and it suggested editing the httpd.conf file so as to
>add the following :
>ServerName testing.com
>Name virtualHost 192.168.99.99
><VirtualHost 192.168.99.99>
>DocumentRoot /home/httpd/domain
>ServerName www.domain.com
></VirtualHost>
><VirtualHost 192.168.99.99>
>DocumentRoot /home/httpd/otherdomain
>ServerName www.otherdomain.com
></VirtualHost>
>But it doesn't work, on entering www.domain.com or www.otherdomain.com in my
>browser (The ip address is okay, coz on entering the ip address in the
>browser, i get the testing.com site...
>Also, i haven't touched the other entries in the httpd.conf file...
>Please help me,
>Thanks a million ...
>Gaurav Agarwal
>www.prayagonline.com


Here is the correct way to do it.
These settigs will cause www.whatever.com AND whatever.com to work for
both domains.  You had a typo (see above) in your NameVirtualHost
command.... NO SPACES ALLOWED! :-)

BEFORE YOU DO THIS CHANGE, type this in telnet:

killall httpd
httpd

You will then be able to see the error when apache starts up again.

You might not have seen the error if you did a kill -1 `cat /var/run/httpd.pid`
because of the way that methood restarts apache.  When in doubt, killall httpd
then httpd to restart as this will show you the startup errors on your
terminal screen while it starts.

NameVirtualHost 192.168.99.99

<VirtualHost 192.168.99.99>
DocumentRoot /home/httpd/domain
ServerAlias domain.com
ServerName www.domain.com
</VirtualHost>

<VirtualHost 192.168.99.99>
DocumentRoot /home/httpd/otherdomain
ServerAlias otherdomain.com
ServerName www.otherdomain.com
</VirtualHost>


But it doesn't work, on entering www.domain.com or www.otherdomain.com in my
browser (The ip address is okay, coz on entering the ip address in the
browser, i get the testing.com site...
Also, i haven't touched the other entries in the httpd.conf file...
Please help me,
Thanks a million ...
Gaurav Agarwal
www.prayagonline.com



****** AREA CODE CHANGE *******
OUR NEW PHONE NUMBER: 858-679-2814

Thank you.

Chris Jester
SplitInfinity

Our slide show CGI is an awesome addition to any site. It allows your users
to surf "hands free" through your photo archives. Users can set delay and
skip photos they dont want to see immediately.  This CGI works in harmony with
our "Naughty Navigator" program (CGI) which allows users to navigate 
your images
by viewing thumbnails in a paged mode.  The items will work seperately, however
in harmony, having both is the best way to add to your site. Added time saving
features are also included with the navigator CGI. This system will auto-create
all the thumbnails and etc. for you. No html to generate.  Additionally these
are all fully customizable. We do all the installation, so there is no
guesswork or trial and error on your part.  We hold your hand the whole way
and make sure you understand how they work. (Quite easy I might add).

Please let me know if you have any questions.

In God We Trust, all others pay cash.

And........
I am suffering from rare and deadly diseases,
poor scores on final exams, extreme virginity, fear of being kidnapped and
executed by anal electrocution, and guilt for not forwarding out 50 billion
fucking chain letters sent to me by people who actually believe that if you
send them on, then that poor 6-year-old girl in Arkansas with a breast on her
forehead will be able to raise enough money to have it removed before her
redneck parents sell her off to the travelling freak how. Do you honestly
believe that Bill Gates is going to give you and everyone you send "his" email
to $1000? How stupid are you?  "Ooooh, lookyhere! If I scroll down this page
and make a wish, I'l get laid by every Playboy model in the magazine!" What a
bunch of bullshit. So basically, this message is a big FUCK YOU to all the
people out there who have nothing better to do than to send me stupid chain
mail forwards. Maybe the evil chain letter leprechauns will come into my
apartment and sodomize me in my sleep for not continuing the chain which was
started by Jesus in 5 A.D. and was brought to this country by midget pilgrims
on the Mayflower and if it makes it to the year 2000, it'll be in the Guinness
Book of World Records for longest continuous streak of blatant stupidity. If
you're going to forward something, at least send me something mildly amusing.
I've seen all the "send this to 50 of your closest friends, and this poor,
wretched excuse for a human being will somehow receive a nickel from some
omniscient being" forwards about 90 times. I don't care. Show a little
intelligence and think about what you're actually contributing to by sending
out forwards. Chances are it's your own unpopularity. The point being? If you
get some chain letter that's threatening to leave you shagless or luckless for
the rest of your life, delete it. If it's funny, send it on. Don't piss people
off by making them feel guilty about a leper in Botswana with no teeth, who's
been tied to a dead elephant for 27 years, whose only savior is the 5 cents per
letter he'll receive if you forward this mail, otherwise you'll end up like
Miranda. Right? Now forward this to everyone you know. Otherwise, tomorrow
morning your underwear will turn carnivorous and will consume your genitals.

Reply via email to