Results 1 to 3 of 3
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 ...
- 04-09-2009 #1Just Joined!
- Join Date
- Apr 2009
- Posts
- 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
- 04-09-2009 #2
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
- 04-09-2009 #3
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/


Reply With Quote
