Vhost configuration in apache shows a blank page in browser

Discussion in 'Apache' started by gurusundar, Apr 9, 2008.

  1. #1
    I have configured virtual host for apache2.2 in my windowXP.

    i am having a site(folder) named lead capture in my c://appserv/www/

    normally i will type in browser as http://localhost:81/leadcapture

    after setting up the vhost i typed the url as http://leadcapture

    which must work normally and show my website. But it returns a blank page instead.

    can any one help me in solving this problem.


    i have already worked with vhost in another machine.
    i really dont understand what is the problem with this now

    modified my host file in


    127.0.0.1 leadcapture

    C:\WINDOWS\system32\drivers\etc\hosts




    Added these lines in
    <VirtualHost *:80>
    ServerAdmin guru@localhost.com
    DocumentRoot "C:/AppServ/www/leadcapture"
    ServerName leadcapture
    <Directory "C:/AppServ/www/leadcapture">
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>

    C:\AppServ\Apache2.2\conf\extra\httpd-vhosts.conf


    3. C:\AppServ\Apache2.2\conf\httpd.conf

    Added these 2 lines at line:270 i.e., below <Directory "C:/AppServ/www">

    Options FollowSymLinks
    AllowOverride FileInfo


    Also removed the # before the following line on line:196

    LoadModule rewrite_module modules/mod_rewrite.so
    kindly help me to configure my virtual host



    Regards Gurusundar
     
    gurusundar, Apr 9, 2008 IP
  2. scamp81

    scamp81 Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What is your default document?

    Try adding

    DefaultDocument index.php

    if your default doc is index.php

    also did you restart the Apache service? Your need to do this before the config will be read.
     
    scamp81, Apr 9, 2008 IP
  3. gurusundar

    gurusundar Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i restarted my apache before running the pages. But

    it's not working and showing a blank page.

    should i want to change any configs in php.ini file.

    if i type http://localhost:80/leadcapture

    the url in browser automaticaly changes to http://localhost/leadcapture

    and still returns a blank page
     
    gurusundar, Apr 10, 2008 IP