Hi in that i am runing pclinuxos and i want to set up internet pattern server. I own apache and for example i enjoy static ip address 10.10.10.10 and xxx.com. And i hold webmin
Answers:
I own a static IP address too. I own several domain name register near a registering company and I configure them to point to my static IP address.
For the apache to adopt the domain properly do the following...
1. stifle /etc/hosts and tag on the procession...
10.10.10.10 xxx.com www.xxx.com
Note: respectively added subdomain requests to be added to the hosts folder and added contained by to the virtual host database below.
The below config folder assume in that exist a home directory "xxx.com" cut this to point to the valid webroot
2. expurgate the apache report /etc/apache2/sites-enable and append the lines...
NameVirtualHost xxx.com
<VirtualHost xxx.com>
ServerAdmin webmaster@localhost
DocumentRoot /home/xxx.com
<Directory "/home/xxx.com">
AllowOverride None
Options Indexes MultiViews FollowSymLinks
Order allow,deny
Allow from all
</Directory>
# Possible values include: debug, info, thought, put on alert, error, crit,
# alert, emerg.
LogLevel warn
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
#For SubDomains aka www.xxx
NameVirtualHost www.xxx.com
<VirtualHost www.xxx.com>
ServerAdmin webmaster@localhost
DocumentRoot /home/xxx.com
<Directory "/home/xxx.com">
AllowOverride None
Options Indexes MultiViews FollowSymLinks
Order allow,deny
Allow from all
</Directory>
# Possible values include: debug, info, catch sight of, alert, error, crit,
# alert, emerg.
LogLevel warn
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
Don't forget to restart apache
/etc/init.d/apache2 restart
To use it as a pattern server you obligation to subscribe to a fixed public IP address. You will probably involve to subscribe to a business broadband depiction earlier you can set the contraption available to the network. You afterwards forward your required ports on the router to the private address of the server. Set the firewall to allow these ports. Then set your domain registrar's dns to point to your gadget.