Virtualhost problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hacktor

    Virtualhost problem

    Dear members, can someone tell me why I can't view my index.php from the subdir /oorbellenboutiq ue/ ???

    It shows http:// www.oorbellenbo utique.nl/startpagina/index.php but it must be the index.php from f:/inetpub/wwwroot/oorbellenboutiq ue

    The correct URL must be: http:// www.oorbellenbo utique.nl/index.php

    My DNS is:

    A *.oorbellenbout ique.nl → 83.87.163.224

    A oorbellenboutiq ue.nl → 83.87.163.224

    CNAME www.oorbellenbo utique.nl → oorbellenboutiq ue.nl

    My URL is: http://www.oorbellenbo utique.nl

    I'm running Apache 2.x

    NameVirtualHost 192.168.0.199:8 0

    NameVirtualHost 192.168.0.199:4 43

    <VirtualHost 192.168.0.199:8 0 192.168.0.199:4 43>
    ServerName oorbellenboutiq ue.nl
    ServerAlias www.oorbellenbo utique.nl
    DocumentRoot f:/inetpub/wwwroot/oorbellenboutiq ue
    RewriteEngine On
    KeepAlive Off
    DocumentRoot "f:/inetpub/wwwroot"
    <Directory f:/inetpub/wwwroot/oorbellenboutiq ue>
    DirectoryIndex index.php
    Order deny,allow
    Allow from all
    </Directory>
    RewriteCond %{HTTP_HOST} ^(?:www\.)?oorb ellenboutique\. nl$
    ReWriteRule ^(.*) /oorbellenboutiq ue/$1
    </virtualhost>
  • wizardry
    New Member
    • Jan 2009
    • 201

    #2
    i dont see where you have edited your localhost file to include your new virtual domain name. also check your httpd.conf to ensure that your virtual hosts conf file is included.

    Comment

    Working...