| Author |
12 hours to get it to work and no luck -- friday night 23:13
|
|
| william.hooper@gmail.com 2007-10-12, 7:26 pm |
| 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@gmail.com 2007-10-13, 7:39 am |
| 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
| |
| Kees Nuyt 2007-10-13, 1:21 pm |
| 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 *
>
><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 2007-10-14, 7:34 am |
| 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/viewto...er=asc&start=20
Thanks for the feedback !
Regards,
--
( Kees
)
c[_] The bigger they are, the harder they hit you. (#165)
|
|
|
|