Setting Apache Virtual Host

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • somaskarthic
    New Member
    • Aug 2006
    • 60

    Setting Apache Virtual Host

    Hi

    I need to set up a virtual host . Let me know the steps involved to set up a virtual host. So that , though the internet connection is not available , i could access my intranet pages as www.example.com .

    Please shower ur inputs.

    Thanks in advance.

    Somaskarthic
  • Loismustdie129
    New Member
    • Aug 2006
    • 194

    #2
    The basic way I know how to do it is to ues the <VirutalHost> directive

    Here is an example using the server www.example.com of the minimum a webmasters must include:

    <VirtualHost www.example.com >
    DocumentRoot #This is where hte vrtual host's documents reside
    Servername www.example.com
    ServerAdmin #This is the e-mail address of the virtualhost's webmaster
    Redirect #This specifies any RULs to be redirected to other URLs
    ErrorLog #This specifies the file where errors are logged involving this virtual host
    CustomLog #This specifies the file where accesses to the virtual host is logged
    </VirtualHost>

    Hope this helps

    NOTE: any thing in the example after the # is where you must put your own information independent of your system or virtual host information

    Comment

    • cassbiz
      New Member
      • Oct 2006
      • 202

      #3
      Man you are posting all over the place.

      Using the above method and also the one that I wrote out for you in this post http://www.thescripts.com/forum/thread580357.html
      You should be able to figure it out.

      Once you have completed the initial steps if you are still having problems then
      look into your error logs to see where the problem lies.

      Also one other note is that you should be able to ping the domain example.com from your shell.

      This is assuming you have Apache setup and it is working.

      Comment

      Working...