Pagina's: 1 [2]
Print
Auteur Topic: [HOW TO] Apache Vhost Configureren - v1.0  (gelezen 7800 keer)
jojojoey12
Newbie
*
Berichten: 4


Bekijk profiel E-mail
« Antwoord #15 Gepost op: Juli 24, 2009, 18:55:31 »

ik heb sinds kort een nieuwe server win 2003 RC2

en ik kan jfpc.ath.cx berijken maar als ik naar joey.jfpc.ath.cx of freek.jfpc.ath.cx wil gaan kan hij hem niet vinden.
op localhost kan die hem vinden maar vanaf een andere computer niet.
ik wil dit graag voor me maat en mij voor als we op school sites willen bouwen.

dit is mij Vhost:

Code:
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

<VirtualHost *:80>
    DocumentRoot "c:\xampp\htdocs"
    ServerName jfpc.ath.cx
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "c:\xampp\htdocs\freek"
    ServerName freek.jfpc.ath.cx
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "c:\xampp\htdocs\joey"
    ServerName joey.jfpc.ath.cx
</VirtualHost>


in de HOSTS file heb ik

127.0.0.1 freek.jfpc.ath.cx
127.0.0.1 joey.jfpc.ath.cx

wat is er fout? hopelijk kunnen jullie mij weer helpen ik weet dat er mensen zijn die me kunnen helpen.
ik hoor het graag
Gelogd
danya
Newbie
*
Berichten: 2


Bekijk profiel E-mail
« Antwoord #16 Gepost op: Februari 15, 2010, 15:01:22 »

Is het ook mogelijk om op deze manier tegen xampp te zeggen,
wanneer ik ook maar IETS typ als subdomein, verwijs dan naar de map 'IETS' in htdocs.
Dus dat ik niet voor élke nieuwesite.localhost mijn vhost moet bijwerken.

Ofwel, dynamisch dus.
Gelogd
Pagina's: 1 [2]
Print
 
Ga naar: