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

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
lamp4
Forum Newbie
Posts: 5
Joined: Mon Apr 13, 2009 12:36 am

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

Post by lamp4 »

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 http://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
tech603
Forum Commoner
Posts: 84
Joined: Thu Mar 19, 2009 12:27 am

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

Post by tech603 »

Here is apache's documentation on how to create virtual hosts.

http://httpd.apache.org/docs/1.3/vhosts/

hope that helps
lamp4
Forum Newbie
Posts: 5
Joined: Mon Apr 13, 2009 12:36 am

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

Post by lamp4 »

thanks tech603.
but it's create by manual.
can i create sub domain automatic ???
example: i have homepage is: http://domain.com
when user login success, URL become: http://username.domain.com/ , but real place is http://domain.com/username
Post Reply