Subdomeinen @ Apache

Pagina: 1
Acties:

  • RuntimeError
  • Registratie: Juni 2006
  • Laatst online: 13-02 00:55
Hoi mensen,

Ik draai Apache 2.2.4 op een testbak (w2k3). Nu wil ik voor mijn domein subdomeinen instellen. Dit wil ik gaan doen via virtualhosts (geen idee of het ook anders kan maar zo deed ik het in linux ook). Nu heb ik het volgende probleem. Als ik naar http://admin.runtime-error.nl ga, krijg ik dezelfde pagina voor me als dat ik naar http://www.runtime-error.nl ga. Dit is dus niet de bedoeling. In mijn config file staat bij virtualhosts het volgende:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
NameVirtualHost *:80 

<VirtualHost *:80>
    ServerAdmin webmaster@runtime-error.nl
    ServerName www.runtime-error.nl
    DocumentRoot D:/web/http/www
    CustomLog logs/www.runtime-error.nl.access.log combined
    ErrorLog logs/www.runtime-error.nl.error.log
    ServerSignature On

    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory D:/web/http/www>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
    </Directory>

</VirtualHost>

<VirtualHost *:80>
    ServerAdmin webmaster@runtime-error.nl
    ServerName admin.runtime-error.nl
    DocumentRoot D:/web/http/admin
    CustomLog logs/admin.runtime-error.nl.access.log combined
    ErrorLog logs/admin.runtime-error.nl.error.log
    ServerSignature On

    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory D:/web/http/admin>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
    </Directory>

</VirtualHost>


Waar gaat het fout??? |:(

  • RuntimeError
  • Registratie: Juni 2006
  • Laatst online: 13-02 00:55
*** SCHOP ***

Stel ik nou zo'n onmogelijke vraag :?

  • Marlibica
  • Registratie: Augustus 2002
  • Laatst online: 17-11-2025

Marlibica

Tijd voor een ondertitel.

Nou zeg..

Anyway, bij mij draait nog 2.0 en ik ben geen apache expert, maar toch:
<VirtualHost *:80>
ServerName subdomein.domein.nl
DocumentRoot "directory"
</VirtualHost>

Is alles wat er staat bij mij en dat werkt prima. Verder staat er eerder vermeld

NameVirtualHost *:80

Misschien dat je er wat mee kunt
edit:

Dat laatste staat er sowieso bij jou ook zie ik..

[ Voor 9% gewijzigd door Marlibica op 30-08-2007 10:31 ]

Sign here against sigs


  • Gunner
  • Registratie: Oktober 1999
  • Niet online

Gunner

Invincibles

RuntimeError schreef op donderdag 30 augustus 2007 @ 10:25:
*** SCHOP ***

Stel ik nou zo'n onmogelijke vraag :?
Nee, maar gebruik de search eens zou ik zeggen. Dit is echt in den treure besproken inmiddels en alle topics staan vol met bruikbare .conf file.

Bijvoorbeeld dit topic van een aantal dagen geleden; Virtual Hosts apache

Overigens is het niet echt netjes om binnen 24H je topic te kicken.

[ Voor 21% gewijzigd door Gunner op 30-08-2007 10:36 ]

Still warm the blood that courses through my veins. | PvOutput | ARSENAL FC


  • RuntimeError
  • Registratie: Juni 2006
  • Laatst online: 13-02 00:55
Het probleem is dat mijn config in opzet het zelfde is als de dingen die ik op internet tegen kom, het verschil is dat het bij iedereen schijnt te werken, behalve bij mij :?

Verwijderd

Restart je apache wel dan?

  • RuntimeError
  • Registratie: Juni 2006
  • Laatst online: 13-02 00:55
natuurlijk

  • Marzman
  • Registratie: December 2001
  • Niet online

Marzman

They'll never get caught.

Heb je een default host? Dat ontbrak bij mij ooit in apache 1.3 waardoor het niet werkte. Misschien is dit bij jou ook het probleem.

☻/ Please consider the environment before printing this signature
/▌
/ \ <-- This is bob. copy and paste him and he will soon take over the world.


  • RuntimeError
  • Registratie: Juni 2006
  • Laatst online: 13-02 00:55
default host? bedoel je namevirtualhost?
Pagina: 1