Find the answer to your Linux question:
Results 1 to 2 of 2
I installed apache. i want to add (for test purpose) activetest.com as a virtualhost in my local machine and show its access in the browser. How could I do this??...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2009
    Posts
    3

    accessing a virtual host in local machine


    I installed apache.
    i want to add (for test purpose) activetest.com as a virtualhost in my local machine and show its access in the browser.
    How could I do this??

  2. #2
    Just Joined!
    Join Date
    Aug 2009
    Posts
    3
    And Igot the solution too
    NameVirtualHost *:80
    <VirtualHost 192.168.1.15:80>
    ServerAdmin ajo@host9.activein.com
    DocumentRoot /opt/htdocs # the path
    ServerName activetest.com
    </VirtualHost>


    also create an entry to /etc/hosts

    192.168.1.15 sub.activetest.com activetest.com activeaddon.com

    the sites listed here will be accessed from the local machine itself.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •