12 hours to get it to work and no luck -- friday night 23:13

I have tried on my qnap, I have installed apache on my windows pc and
done the sanme thing. I have read dozens of articles. I hate Apache.
No wonder MSFT dominates the software world. I don;t think I have ever
spent so long trying to so little on a computer.

Installed Apache and it runs on PC.

Changed host file to route mydomain1.com to my pc's ip address and
likewise with mydomain2.com.

Put this code iat the end of http.conf:

NameVirtualHost *

<VirtualHost *>
ServerName mydomain1.com
DocumentRoot "C:\Web\Dir1"
</VirtualHost>

<VirtualHost *>
ServerName mydomain2.com
ServerPath /whooper
DocumentRoot "C:\Web\Dir2"
</VirtualHost>

and it does nothing. what a total waste of my life
william.hooper [ Sa, 13 Oktober 2007 00:16 ] [ ID #1843396 ]

Re: 12 hours to get it to work and no luck -- friday night 23:13

Stupid \ intstead of / mistake.

Still I can only get virtual hosting to work if I type in
mydomain1.com and mydomain2.com into internet eplorer. type in
www.mydomain2.com and the idiot program just flips the url to www.mydomain1.com.
christ
william.hooper [ Sa, 13 Oktober 2007 14:30 ] [ ID #1844055 ]

Re: 12 hours to get it to work and no luck -- friday night 23:13

On Fri, 12 Oct 2007 15:16:53 -0700,
william.hooper [at] gmail.com wrote:

>I have tried on my qnap, I have installed apache on my windows pc and
>done the sanme thing. I have read dozens of articles. I hate Apache.
>No wonder MSFT dominates the software world. I don;t think I have ever
>spent so long trying to so little on a computer.

>Installed Apache and it runs on PC.
>
>Changed host file to route mydomain1.com to my pc's
>ip address and likewise with mydomain2.com.
>
>Put this code iat the end of http.conf:
>
>NameVirtualHost *
>
><VirtualHost *>
>ServerName mydomain1.com
>DocumentRoot "C:\Web\Dir1"
></VirtualHost>
>
><VirtualHost *>
>ServerName mydomain2.com
>ServerPath /whooper
>DocumentRoot "C:\Web\Dir2"
></VirtualHost>
>

Use NameVirtualHost *:80 and VirtualHost *:80.
Make sure the port matches the Listen directive.

Change the backslashes in the DocumentRoot entries into
forward slashes.
Add a <Directory ....> block in each virtual host for its
documentroot.

I wouldn't use ServerPath anymore. At least try to get
things running without it until the sites work normally
with recent browser versions.

>and it does nothing.

I assume you did start Apache? And restart after every
config change?
Any entries in access_log and error_log?

> What a total waste of my life.

I'm sure you'll get it going before Monday morning,
there's plenty of time left. First have a nap, and / or
make a walk. It often helps.

Good luck.
--
( Kees
)
c[_] Which is worse, ignorance or apathy? Who knows? Who cares? (#202)
Kees Nuyt [ Sa, 13 Oktober 2007 16:42 ] [ ID #1844056 ]

Re: 12 hours to get it to work and no luck -- friday night 23:13

It was my fault... when you type www.mydomain.com into IE it ignores
the host file.

i am all running at last and posted instructions to get the qnap nas
running with multiple web sites here:

http://forum.qnap.com/phpbb2/viewtopic.php?t=527&postdays=0& postorder=asc&start
william.hooper [ Sa, 13 Oktober 2007 17:46 ] [ ID #1844058 ]

Re: 12 hours to get it to work and no luck -- friday night 23:13

On Sat, 13 Oct 2007 08:46:06 -0700,
william.hooper [at] gmail.com wrote:

>It was my fault... when you type www.mydomain.com into IE it ignores
>the host file.
>
>i am all running at last and posted instructions to get the qnap nas
>running with multiple web sites here:
>
>http://forum.qnap.com/phpbb2/viewtopic.php?t=527&postdays=0 &postorder=asc&start

Thanks for the feedback !

Regards,
--
( Kees
)
c[_] The bigger they are, the harder they hit you. (#165)
Kees Nuyt [ So, 14 Oktober 2007 11:58 ] [ ID #1844489 ]
Webserver » alt.apache.configuration » 12 hours to get it to work and no luck -- friday night 23:13

Vorheriges Thema: Problem with Tomca 5.5 and web-app_2_4.xsd in Eclipse
Nächstes Thema: Empty query string if containing letters