Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    accessing a virtual host in local machine

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

  2. #2
    And Igot the solution too
    NameVirtualHost *:80
    DocumentRoot /opt/htdocs # the path

    also create an entry to /etc/hosts

    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