webForumDet fria alternativet

virtual hosts

0 svar · 306 visningar · startad av niels

nielsMedlem sedan juli 2000215 inlägg
#1

Jag arbetar med en server som skall hosta manga websidor. Nagra ligger i en egen katalog och alla andra skall dirigeras till samma katalog.

Foljande installningar har jag gjort med i httpd.conf:


<VirtualHost gocarthk.com [url]www.gocarthk.com[/url]>
	ServerName gocarthk.com
	ServerAdmin [email]webmaster@gocarthk.com[/email]
	DocumentRoot /www/html/gocart/html/gocarthk
	ServerAlias gocarthk
</VirtualHost>

<VirtualHost princeoflankwaifong.com [url]www.princeoflankwaifong.com[/url]>
	ServerName princeoflankwaifong.com
	ServerAdmin [email]webmaster@princeoflankwaifong.com[/email]
	DocumentRoot /www/html/prince/html
	ServerAlias princeoflankwaifong
</VirtualHost>

<VirtualHost notkidstoys.com [url]www.notkidstoys.com[/url]>
	ServerName notkidstoys.com
	ServerAdmin [email]webmaster@notkidstoys.com[/email]
	DocumentRoot /www/html/notkidstoys/html
	ServerAlias notkidstoys
</VirtualHost>

# Vhosts:

<VirtualHost beautyprivilege.com [url]www.beautyprivilege.com[/url]>
	ServerName beautyprivilege.com
	ServerAdmin [email]webmaster@beautyprivilege.com[/email]
	DocumentRoot /www/html/beautyprivilege
	ServerAlias beautyprivilege
</VirtualHost>

# Temporary vhosts (to be handled by default engine in the future):

<VirtualHost orientalsearch.com [url]www.orientalsearch.com[/url]>
	ServerName orientalsearch.com
	ServerAdmin [email]webmaster@orientalsearch.com[/email]
	DocumentRoot /www/html/orientalsearch
	ServerAlias orientalsearch
</VirtualHost>

# Default engine:

<VirtualHost _default_:*>
	ServerName 216.65.63.139
	ServerAdmin [email]webmaster@easehost.com[/email]
	DocumentRoot /www/html/default/public
</VirtualHost>

Problemet ar att inte allt fungerarar. De forsta fungerar fint, men pa nagot konstigt satt sa dirgeras orientalsearch och beautyprivilege till gocart sidan. Och jag tror inte heller att default fungerar heller. sokvagar och andra externa inst. ar korrekta tror jag. Bade orientals. och beautypriv. har fungerat men nar jag fixade till gocarthk sa slutade de att fungera.

Jag bifogar hela http.conf. Det skulle vara jattesnallt om nagon kunde oga igenom den, det ar sakert en massa fel!

Genererad på 375 ms · cache AV · v20260730165559-full.f96bc7eb