View previous topic :: View next topic |
Author |
Message |
lotas Tux's lil' helper
Joined: 23 Jul 2002 Posts: 121 Location: Tallaght, Dublin, Ireland
|
Posted: Thu Oct 31, 2002 4:32 pm Post subject: Apache Vhosts not being VHosts! |
|
|
Ok. me has problem. I have apache set up with some websites. Im after migrating from clarkconnect to gentoo in the last day or so and this i still having problems. only one of my VHosts are working. every other one just sends the first one. here is the vhosts part:
Code: | <VirtualHost _default_>
DocumentRoot /home/hairyone/html/
ServerName www.the-hairy-one.com
ScriptAlias /cgi-bin /home/hairyone/html/cgi-bin
</VirtualHost>
<VirtualHost _default_>
DocumentRoot /home/hairyone/html
ServerName the-hairy-one.com
</VirtualHost>
<VirtualHost _default_>
DocumentRoot /home/lsnhome/html
ServerName www.lotas-smartman.net
</VirtualHost>
<VirtualHost _default_>
DocumentRoot /home/nuke
ServerName news.lotas-smartman.net
</VirtualHost>
|
I used webconfig for the configuration. The only one thats working is the first one, the-hairy-one.com. Any ideas? dont tell me its something little either or ill just laff alot as most of my problems have been quite small!!! _________________ Lotas T Smartman
www.lotas-smartman.net
www.the-hairy-one.com
www.lsn-blog.tk
Dual Athlon 2Gz, 1Gb ram, 120Gb hdd, GeForce FX5200, DVD+R/-R/+RW/-RW, CDR/RW |
|
Back to top |
|
|
Larde Guru
Joined: 07 Jun 2002 Posts: 313 Location: Duesseldorf, Germany
|
Posted: Thu Oct 31, 2002 4:46 pm Post subject: |
|
|
Do you have a NameVirtualHost directive somewhere? And I dont know about that _default_ you use, is that common?
Perhaps just try to set it up as depicted in the docs, perhaps that works.
Hth,
Larde. _________________ Someday this will be my home... http://moonage.net/
I'll make you a deal
I'll say I came from Earth and my tongue is taped
|
|
Back to top |
|
|
theclaus n00b
Joined: 08 Oct 2002 Posts: 64 Location: Boise, ID
|
Posted: Thu Oct 31, 2002 6:07 pm Post subject: |
|
|
Here is a snip from my httpd.conf Granted it is running on a RH 7.3 box(I want to move it to gentoo but don't have a backup server for this yet) but it should work.
Code: |
<VirtualHost *>
ServerAdmin theclaus@whatever.com
DocumentRoot /htdocs/teamscrap
ServerName teamscrap.kicks-ass.org
ErrorLog logs/teamscrap_error_log
</VirtualHost>
|
It works fine for me. Have about 5 running. The one listed above is a dead link now. Hope it helps. |
|
Back to top |
|
|
snowman n00b
Joined: 31 Oct 2002 Posts: 2
|
Posted: Thu Oct 31, 2002 8:58 pm Post subject: Are you using SSL? |
|
|
I ran into this problem as well.
Try this:
Taken from http://httpd.apache.org/docs/vhosts/name-based.html:
Name-based virtual hosting cannot be used with SSL secure servers because of the nature of the SSL protocol. |
|
Back to top |
|
|
lotas Tux's lil' helper
Joined: 23 Jul 2002 Posts: 121 Location: Tallaght, Dublin, Ireland
|
Posted: Thu Oct 31, 2002 10:52 pm Post subject: |
|
|
its working now. thanks. should of read the manual!!! anyway, thanks. it was that NameVirtualHost thingy that was missing. everything works grand now!!! Thanks! _________________ Lotas T Smartman
www.lotas-smartman.net
www.the-hairy-one.com
www.lsn-blog.tk
Dual Athlon 2Gz, 1Gb ram, 120Gb hdd, GeForce FX5200, DVD+R/-R/+RW/-RW, CDR/RW |
|
Back to top |
|
|
|