@ uspry1
Thanks for the info regarding virtual host set up.I have actually attached a copy of my httpd.config file.can you kindly download it and see if you can locate where i need to modify.
@tundewoods
You're welcome. No need for me to download your copied httpd.config, because i am very familiar finding where you need to modify the easy way as follow below:
1.) Open your Apache httpd.config
2.) Search for Virtual Host section, using text editor toolbar menu, "EDIT" to select "FIND", then it will prompts you a FIND dialog box entering the blank"FIND WHAT" field box the exact wording>>>: "Section 3: Virtual Hosts" without a quote.
3.) It will search pointing the highlight text of "Section 3: Virtual Hosts", then scroll down reading the following configuration instruction and Virtual host example
VERY CAREFUL.
4.) Create your own multiple virtual host placing in the between of the end of the Virtual host example and "INCLUDE" tag. Your example multiple virtual hosts like this below: [please check your Apache2 documentation if you are doubt]
Create the file-first domain:
#
# Example.com (/etc/apache2/sites-available/www.example.com)
#
<VirtualHost *>
ServerAdmin webmaster@example.com
ServerName www.example.com
ServerAlias example.com
# Indexes + Directory Root.
DirectoryIndex index.html
DocumentRoot /home/www/www.example.com/htdocs/
# CGI Directory
ScriptAlias /cgi-bin/ /home/www/www.example.com/cgi-bin/
<Location /cgi-bin>
Options +ExecCGI
</Location>
# Logfiles
ErrorLog /home/www/www.example.com/logs/error.log
CustomLog /home/www/www.example.com/logs/access.log combined
</VirtualHost>
Next create the file-second domain:
#
# Example.net (/etc/apache2/sites-available/www.example.net)
#
<VirtualHost *>
ServerAdmin webmaster@example.net
ServerName www.example.net
ServerAlias example.net
# Indexes + Directory Root.
DirectoryIndex index.html
DocumentRoot /home/www/www.example.net/htdocs/
# CGI Directory
ScriptAlias /cgi-bin/ /home/www/www.example.net/cgi-bin/
<Location /cgi-bin>
Options +ExecCGI
</Location>
# Logfiles
ErrorLog /home/www/www.example.net/logs/error.log
CustomLog /home/www/www.example.net/logs/access.log combined
</VirtualHost>
Finally create the file - third domain:
#
# Example.org (/etc/apache2/sites-available/www.example.org)
#
<VirtualHost *>
ServerAdmin webmaster@example.org
ServerName www.example.org
ServerAlias example.org
# Indexes + Directory Root.
DirectoryIndex index.html
DocumentRoot /home/www/www.example.org/htdocs/
# CGI Directory
ScriptAlias /cgi-bin/ /home/www/www.example.org/cgi-bin/
<Location /cgi-bin>
Options +ExecCGI
</Location>
# Logfiles
ErrorLog /home/www/www.example.org/logs/error.log
CustomLog /home/www/www.example.org/logs/access.log combined
</VirtualHost>
5.) That's it! Save your Apache httpd.config, then go back to Apache start/stop manager to restart the Apache server in order to refresh the new configuration updating.
6.)If you plan to terminate the domain and open your Apache httpd.config, use EDIT/FIND menu to type the name of domain you want to delete. It will prompt the right place (highlight text) and delete that domain name virtual host. Repeat on number 5 above.
NOTICE: ServerAdmin clause, you don't have to use "
webmaster@yourdomain.com", it also can be "
yourusername@yourdomain.com", that is fine with me! I hope you did set up your domain email forward or account to your yahoo mail or outlook express if you are too busy to access secured domain webmail checking incoming messages.
I hope it helps! Good day Tundewoods!