hackerpitbull
Verified User
- Joined
- Dec 25, 2004
- Messages
- 64
These How-To been tested under FC2 & DA but should work for all Operating Systems with the required tools.
Required
- Apache (private httpd.conf for evrey domain [VirtualHost])
- DA
- Bind DNS (named)
- nano/pico editor
First lets edit domain conf':
Under
ADD
Under
You have the SN of the domain increase the last number by one.
Save & exit
ctrl+x then y then [ENTER]
Run:
/sbin/service named restart
Now lets edit httpd.conf of that domain (VirtualHost):
In:
<VirtualHost ServerIP:80>
Under:
ADD
Save & exit
ctrl+x y [ENTER]
Run:
/sbin/service httpd restart
done
Required
- Apache (private httpd.conf for evrey domain [VirtualHost])
- DA
- Bind DNS (named)
- nano/pico editor
First lets edit domain conf':
Code:
nano /var/named/[i]domain.com[/i].db
Code:
www 14400 IN A [i]ServerIP[/i]
Code:
* 14400 IN A [i]ServerIP[/i]
Code:
root.[i]domain.com[/i]. (
Save & exit
ctrl+x then y then [ENTER]
Run:
/sbin/service named restart
Now lets edit httpd.conf of that domain (VirtualHost):
Code:
nano /usr/local/directadmin/data/users/[i]User-Name-Of-The-Domain[/i]/httpd.conf
In:
<VirtualHost ServerIP:80>
Under:
Code:
ServerName [url]www.[/url][i]domain.com[/i]
Code:
ServerAlias [url]www.*.[/url][i]domain.com[/i] *.[i]domain.com[/i]
ServerAlias *.[i]domain.com[/i]
Save & exit
ctrl+x y [ENTER]
Run:
/sbin/service httpd restart
done
