Apache Virtual Host

Discussion in 'Apache' started by sudesh_poojari, Jan 25, 2010.

  1. #1
    Hi all,

    I have problem setting up more than one virtual host in my suse box, it get redirected to only localhost (which ever i put first in file) and not any other folders, my proxy also not working

    below is my virtual host file

    <VirtualHost *:80>
    ServerName www.kipl-intranet.com
    DocumentRoot "/srv/www/htdocs"
    ServerAlias kipl-intranet.com

    <Directory "/srv/www/htdocs">
    AllowOverride None
    Options +ExecCGI -Includes
    Order allow,deny
    Allow from all
    </Directory>
    ServerAdmin sudesh_poojari@localhost.com
    </VirtualHost>
    <VirtualHost *:80>
    ServerName project.kipl-intranet.com
    DocumentRoot /srv/www/redmine
    ServerAdmin webmaster@kipl-intranet.com
    ProxyPass / http://localhost:3000/
    ProxyPassReverse / http://localhost:3000/
    ProxyPreserveHost On
    </VirtualHost>
    <VirtualHost *:80>
    ServerName www.bidjeeto.com
    DocumentRoot /srv/www/htdocs/bidjeeto
    ServerAdmin webmaster@bidjeeto.com
    <Directory /srv/www/htdocs/bidjeeto>
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>
    <VirtualHost *>
    DocumentRoot /srv/www/htdocs
    ServerName localhost
    ServerAdmin webmaster@localhost.com
    <Directory /srv/www/htdocs>
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>
     
    sudesh_poojari, Jan 25, 2010 IP
  2. sudesh_poojari

    sudesh_poojari Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I solved it, just forgot to add NameVirtualHost *:80

    also somebody tell me how to edit my post title so tht i can post solved and also replace urls with false one
     
    sudesh_poojari, Jan 28, 2010 IP