A classic problem with setting up virtual host again

Discussion in 'Apache' started by ronjan, Feb 23, 2013.

  1. #1
    Hi,
    This 403 error is back on my system again. Help me know what if I am missing anything in the below configuration I had:
    Windows' hosts file:
    127.0.0.1 localhost​
    127.0.0.1 lw.rosw.com​

    httpd-vhosts.conf: [others default]

    NameVirtualHost *:80​
    <VirtualHost localhost>​
    ServerAdmin ​
    DocumentRoot "D:/_BIN/xampp/htdocs"​
    ServerName localhost​
    ServerAlias localhost​
    <Directory "D:/_BIN/xampp/htdocs">​
    Options Indexes FollowSymLinks Includes ExecCGI​
    Order allow,deny​
    Allow from all​
    </Directory>​
    </VirtualHost>​

    ​
    <VirtualHost lw.rosw.com>​
    ServerAdmin ​
    DocumentRoot "E:/bin/Server/ROSW/site/web" #I wish to use this along with XAMPP default​
    ServerName lw.rosw.com​
    ServerAlias lw.rosw.com​
    <Directory "E:/bin/Server/ROSW/site/web">​
    Order allow,deny​
    Allow from all​
    </Directory>​
    </VirtualHost>​

    ​
    [All other files are default to its content.] With these I am able to Load 'Localhost' but not lw.rosw.com where I got Access Forbidden 403 error Do I need to do any change in httpd.conf>
     
    Last edited: Feb 23, 2013
    ronjan, Feb 23, 2013 IP