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

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

am 13.10.2007 00:16:53 von william.hooper

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 *


ServerName mydomain1.com
DocumentRoot "C:\Web\Dir1"



ServerName mydomain2.com
ServerPath /whooper
DocumentRoot "C:\Web\Dir2"


and it does nothing. what a total waste of my life

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

am 13.10.2007 14:30:01 von william.hooper

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

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

am 13.10.2007 16:42:30 von Kees Nuyt

On Fri, 12 Oct 2007 15:16:53 -0700,
william.hooper@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 *
>
>
>ServerName mydomain1.com
>DocumentRoot "C:\Web\Dir1"
>

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

>

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 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)

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

am 13.10.2007 17:46:06 von william.hooper

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=20

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

am 14.10.2007 11:58:54 von Kees Nuyt

On Sat, 13 Oct 2007 08:46:06 -0700,
william.hooper@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=20

Thanks for the feedback !

Regards,
--
( Kees
)
c[_] The bigger they are, the harder they hit you. (#165)