Xampp V-Host (2 domains & 2 Orner)

Dieses Thema im Forum "Hosting & Server" wurde erstellt von Aeonsam, 4. August 2009 .

Schlagworte:
  1. 4. August 2009
    hi Leute,

    Heute mal was anderes bitte um Hilfe wer sich mit v-hosts unter Apatche auskennt.

    habe 2 locale domains zB.
    - myweb
    - mysite


    so habe ein paar Lösungen gefunden leider klappts noch nicht ganz.


    habe in meine hosts datei (C:\windows\system32\drivers\etc\) volgendes eingetragen:

    Code:
    127.0.0.1 myweb
    127.0.0.1 mysite
    

    und bei Apatche in der httpd-vhost.conf (C\xampp\apatche\conf\extra)

    Code:
    <VirtualHost *:80>
    ServerName myweb
    DocumentRoot C:\myweb
    
    <Directory C:\myweb>
    IndexOptions +FancyIndexing NameWidth=*
    Options Includes FollowSymLinks Indexes
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    
    </VirtualHost>
    
    <VirtualHost *:80>
    ServerName mysite
    DocumentRoot C:\mysite
    
    <Directory C:\mysite>
    IndexOptions +FancyIndexing NameWidth=*
    Options Includes FollowSymLinks Indexes
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    
    </VirtualHost>
    
    habe mir 2 ordner angelegt:
    - C:\myweb
    - C:\mysite

    in den ordnern habe ich jeweils 1 .html datei (web.html (in c:\myweb) und site.html (in c:\mysite)

    das Problem ist nun
    wenn ich die http://myweb aufrufe kommt ne auflistung wie man sie unter xampp apatche kennt und dort sehe ich dann die:
    - web.html

    wenn ich die http://mysite aufrufe sehe ich auch die
    - web.html (anstatt site.html)


    wenn jemand weis wie ich es anstellen soll das unter http://mysite die site.html angezeigt wird dann bitte postet hier rein.


    MFG Aeonsam
     
  2. 4. August 2009
    AW: Xampp V-Host (2 domains & 2 Orner)

    Änder das ganze mal so:

    Code:
    <VirtualHost myweb:80>
    ServerName myweb
    DocumentRoot C:\myweb
    
    <Directory C:\myweb>
    IndexOptions +FancyIndexing NameWidth=*
    Options Includes FollowSymLinks Indexes
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    
    </VirtualHost>
    
    <VirtualHost mysite:80>
    ServerName mysite
    DocumentRoot C:\mysite
    
    <Directory C:\mysite>
    IndexOptions +FancyIndexing NameWidth=*
    Options Includes FollowSymLinks Indexes
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    
    </VirtualHost>

    lulox
     
  3. 4. August 2009
    AW: Xampp V-Host (2 domains & 2 Orner)

    NameVirtualHost 127.0.0.1 hat oben noch gefällt ansonsten leufts..

    Saube danke für die schnelle lösung!!!
    bwrt haste

    *closed*
     
  4. 5. August 2009
    AW: Xampp V-Host (2 domains & 2 Orner)

    hmm nun das nechste problem.

    der rechner mit dem apatche server ist 192.168.10.110

    am xampp rechner selbst geht alles aber von außen kann ich ihn nicht ansprechen
    z.B. Client 192.168.10.20 geht auf folgende adresse http://192.168.10.110


    hier die aktulelle httpd-vhosts.conf

    Code:
    NameVirtualHost 127.0.0.1
    
    <VirtualHost localhost:80>
    ServerName localhost
    DocumentRoot C:\xampp\htdocs\www
    
    <Directory C:\xampp\htdocs\www>
    IndexOptions +FancyIndexing NameWidth=*
    Options Includes FollowSymLinks Indexes
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    
    </VirtualHost>
    
     
  5. 5. August 2009
    AW: Xampp V-Host (2 domains & 2 Orner)

    läuft evtl. eine Firewall? Das war zumindest das Problem bei meinem ersten Versuch mit XAMPP.

    greez
    DonW33d0
     
  6. 5. August 2009
    AW: Xampp V-Host (2 domains & 2 Orner)

    nö keine firewall nix. ich krieg ja auch xampp als webseite brauche aber den documentroot des localhost als inhalt.

    sprich der apatche server muss den clienten weiterleiten so stell ich mir das vor.

    hb auch schon ip:localhost versucht [klappt nicht ^^]
     
  7. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.