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

    how to make create virtual host with sub domain ???


    Hello all Linux hero

    I use Fedora 10, and installed Apache.

    and now install Bind* with domain: domain-test.com

    After installed Bind, i want to creat Virtual host as follow:

    in var/www/html/ , i create a folder with name LAMP.
    in PHP folder, i create a file linux.php :

    on URL: domain-test.com

    I want domain-test.com/LAMP/linux.php become http://LAMP.domain-test.com/linux.php

    How to do it ??? Can you please explain for me ???

    Thanks all

  2. #2
    Just Joined! abdul raziq's Avatar
    Join Date
    Dec 2006
    Location
    Quetta
    Posts
    77
    Dear lamp4,

    one way i know that you make entry in your DNS server.

    example: edit your forward DNS

    192.168.1.122 IN A lamp.domain-test

    edit your Reverse DNS

    122 IN PTR lamp.domain-test.

    hope it will resolve your issue. may be experts give more easy options.


    Thanks
    Raziq

  3. #3
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    4,087
    -->
    Quote Originally Posted by abdul raziq View Post
    hope it will resolve your issue. may be experts give more easy options.
    Abdul, this is correct. But only a part of the solution.

    Lamp4, when you do this, you'll need to make sure your httpd.conf also contains a virtual host declaration for your new address too. This is not hard to do, just copy one of the existing examples in the default apache config file; they're usually located at the bottom of the sample httpd.conf.
    Linux user #126863 - see http://linuxcounter.net/

$spacer_open
$spacer_close

Posting Permissions

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