All pastes #33812 Raw Edit

sdakota

public text v1 · immutable
#33812 ·published 2005-12-15 20:17 UTC
rendered paste body
server:/etc/apache2/sites-enabled# dir
total 0
lrwxrwxrwx  1 root root 40 2005-12-15 20:54 dazjorz.com -> /etc/apache2/sites-available/dazjorz.com
lrwxrwxrwx  1 root root 36 2005-12-15 21:06 default -> /etc/apache2/sites-available/default
server:/etc/apache2/sites-enabled# cat default
NameVirtualHost *:80
<VirtualHost *>
        ServerAdmin webmaster@dazjorz.com

        DocumentRoot /var/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
                # This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
                # REMOVED!
        </Directory>

        #ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/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 warn

        CustomLog /var/log/apache2/access.log combined
        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>
server:/etc/apache2/sites-enabled# cat dazjorz.com
# put the domain name for all example.tld's.
NameVirtualHost dazjorz.com:80
<VirtualHost dazjorz.com:80>
        ServerName dazjorz.com

        ServerAdmin webmaster@dazjorz.com

        DocumentRoot /var/www/dazjorz.com/htdocs
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/dazjorz.com/htdocs/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /var/www/dazjorz.com/cgi-bin/
        <Directory "/cgi-bin">
                AllowOverride None
                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog /var/www/dazjorz.com/logs/error.log

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

        CustomLog /var/www/dazjorz.com/logs/access.log combined
        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>