Ubuntu Hosts

1 minute read


assure@snapdragonubuntu:~/bhaa/zend/trunk/application/configs$ more /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.158.76.101 snapdragonubuntu
192.158.76.101 bhaalocal
192.158.76.101 memberslocal
192.158.76.101 joomla


assure@snapdragonubuntu:/etc/apache2/sites-available$ ls -al
total 44
drwxrwxrwx 2 root   root   4096 2011-12-06 17:38 .
drwxr-xr-x 7 root   root   4096 2011-11-15 09:57 ..
-rw-r–r– 1 assure assure  282 2011-11-18 16:54 bhaalocal
-rw-r–r– 1 root   root    913 2010-02-09 15:37 default
-rw-r–r– 1 root   root    913 2010-02-09 15:37 default~
-rw-r–r– 1 root   root    950 2010-11-18 21:16 default.dpkg-dist
-rw-r–r– 1 root   root   7469 2010-11-18 21:16 default-ssl
-rw-r–r– 1 assure assure  299 2011-12-06 17:38 joomla
-rw-r–r– 1 assure assure  311 2011-12-06 17:38 joomla~
-rw-r–r– 1 assure assure  327 2011-11-18 17:23 memberslocal

assure@snapdragonubuntu:/etc/apache2/sites-available$ more joomla
NameVirtualHost joomla:80
<VirtualHost joomla:80>
ServerName joomla
ServerAlias joomla
ServerAdmin admin@ilove.php
DocumentRoot /home/assure/bhaa/zend/trunk/joomla
<Directory /home/assure/bhaa/zend/trunk/joomla>
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
assure@snapdragonubuntu:/etc/apache2/sites-available$


assure@snapdragonubuntu:/etc/apache2/sites-available$ more default
<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /home/assure/bhaa/zend/trunk/
<Directory /home/assure/bhaa/zend/trunk/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory “/usr/lib/cgi-bin”>
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel info

CustomLog /var/log/apache2/access.log combined

    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>

Categories:

Updated:

Leave a Comment