Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache Vhosts not being VHosts!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
lotas
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2002
Posts: 121
Location: Tallaght, Dublin, Ireland

PostPosted: Thu Oct 31, 2002 4:32 pm    Post subject: Apache Vhosts not being VHosts! Reply with quote

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
View user's profile Send private message
Larde
Guru
Guru


Joined: 07 Jun 2002
Posts: 313
Location: Duesseldorf, Germany

PostPosted: Thu Oct 31, 2002 4:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
theclaus
n00b
n00b


Joined: 08 Oct 2002
Posts: 64
Location: Boise, ID

PostPosted: Thu Oct 31, 2002 6:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
snowman
n00b
n00b


Joined: 31 Oct 2002
Posts: 2

PostPosted: Thu Oct 31, 2002 8:58 pm    Post subject: Are you using SSL? Reply with quote

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
View user's profile Send private message
lotas
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2002
Posts: 121
Location: Tallaght, Dublin, Ireland

PostPosted: Thu Oct 31, 2002 10:52 pm    Post subject: Reply with quote

its working now. thanks. :oops: 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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum