Newbie Webmin help..

Hi,

I just got a dedicated server with Redhat & Webmin running. I was given 1 IP address. I think that's enough because I just want to host one site in this server. So I look around Webhostingtalk for some total newbie guidance and followed some directions to set up the server.

I did everything and everything seems fine until I tried to restart Apache. I got the error something like
"serveralias should be in virtualhost directive"

Anybody can help me with this problem? Thanks!
Below are the steps I followed:

=================================
First, setup your IP address(es) to resolve
Hardware > Network Configuration > Network Interfaces

You will want your infterfaces active now and interfaces active at boot time to have a "eth0" and "lo" where "eth0" points to your primary IP and "lo" points to 127.0.0.1 (the localhost).
Next, you would create a virtual ethernet by inputting "eth0:0" and "eth0:1". You would input similar data as you did for "eth0" except that you would place the nameserver IPs that you listed.
If you have other IPs that you wish to do, copy this for "eth0:2" and on ...

Next, we can setup BIND. Go to
Servers > BIND DNS Manager > Select "New Master Zone"
Master server is "ns1.yourdomain.com", domain name is the domain name you wish to input and email address is the administrator email. Leave everything else the same.
Once you have that done, create NS, A, CNAME, etc records at your disposal
After that is done, go back to Servers > BIND DNS Manager and go to the very bottom and either "start" or "restart" the BIND server.

Finally, after defining the IP (in #1), mapping the IP to a domain (in #2), let's map the domain to somewhere in your folder!
Go to Servers > Apache Webservers
Go to "Edit Config Files" and then go all the way to the very bottom and just paste in this template:

quote:
--------------------------------------------------------------------------------

DocumentRoot /type/the/linux/path/of/your/folder/here
ServerName name.of.your.domain.com
ServerAlias www.name.of.your.domain.com
<Directory "/the/linux/path/from/documentroot">
Options ExecCGI Includes Indexes MultiViews
</Directory>

--------------------------------------------------------------------------------

You can choose to leave the options there or not. Next, go into your shell at Others > SSH/Telnet login or simply just enter the shell as root (via putty, OpenSSH, or whatever). Type /etc/rc.d/init.d/httpd restart to restart Apache.

==============================

 

 

 

 

Top