Definite Linux newby, and after bumbling about with nothing working, I thought 
I'd ask.
 
With the below setup, and an entry in my hosts file, FireFox complains with 
Unable to connect
Firefox can't establish a connection to the server at wtp4.atoztheworld.com.
 
+++++++++++++++++++++++++++++++++++++++++++++
- Multiple websites, each has it's own config file for mailman, custom 
redirects, mod_rewrite,  whatever
- Linux 3.2.0-60-generic / Ubuntu 12.04.4

# 1) create directories to hold website
/var/www/AZtheWorld
/var/www/AZtheWorld/htdocs
/var/www/AZtheWorld/logs
/var/www/AZtheWorld/index.html # Hello World output

/var/www/website2
etc.

#  2) The next thing to do is to enable virtual hosts in your Apache  
configuration. The simplest way to do this is to create a file called 
/etc/apache2/conf.d/virtual.conf and include the following content in it:
     #     #  We're running multiple virtual hosts.     #     NameVirtualHost *
#TODO valid for my situation? Came from 
[http://www.debian-administration.org/articles/412] 
http://www.debian-administration.org/articles/412

#TODO [https://httpd.apache.org/docs/2.4/vhosts/name-based.html] 
https://httpd.apache.org/docs/2.4/vhosts/name-based.html  says a reference is 
needed in etc/apache2/httpd.conf but I do not see this referenced anywhere 
else. 
Is it required?? Does #2 handle it??


# 3) # AZtheWorld (/etc/apache2/sites-available/AZtheWorld)
# separate files for each site
<VirtualHost *>

 #ServerAdmin [email protected]
 #TODO find out about this
 
 ServerName wtp4.atoztheworld.com
 #ServerAlias example.com # used only if needed / wanted

 # Indexes + Directory Root.
 DirectoryIndex index.html
 DocumentRoot /var/www/AZtheWorld

 # CGI Directory
 #ScriptAlias /cgi-bin/ /home/www/www.example.com/cgi-bin/
 #<Location /cgi-bin>
 #Options +ExecCGI
 #</Location>
 #TODO find out about this
 
 # Logfiles
 ErrorLog /var/www/AZtheWorld/logs/error.log
 CustomLog /var/www/AZtheWorld/logs/access.log combined

</VirtualHost>

# 4) enable sites and reload ( or restart? )
# a2dissite default #
# a2ensite AZtheWorld
# service apache2 restart
+++++++++++++++++++++++++++++++++++++++++++++
 
Thanks,
 
Roy Hinkelman
 Technical Services
 World Trade Press
 707-774-7411
 [email protected]
 ________________________________
 www.WorldTradePress.com (main website)
 

Reply via email to