How To Set Up An SSL Vhost Under Apache2 On Ubuntu 9.10/Debian Lenny

Discussion in 'HOWTO-Related Questions' started by wiseman, Mar 11, 2011.

  1. wiseman

    wiseman New Member

    I followed this howto with success thankyou falko

    my question is how can the index.html be show on a web page?
    how can the mix (ln -s -sys link) be show on a web page?
    they are both outside the www.mydomain.com directory

    here is my /var/www

    total 20
    drwx--x--x 3 root root 4096 Mar 9 19:10 .
    drwxr-xr-x 12 root root 4096 Mar 7 21:45 ..
    lrwxrwxrwx 1 root root 24 Mar 9 19:10 mix -> /var/lib/mix/results
    -rwxr-xr-x 1 root root 4110 Feb 7 2002 index.html
    drwxr-xr-x 2 root root 4096 Mar 7 21:45 www.mydomin.com

    here is my defualt layout from apache.

    <VirtualHost *:80>
    ServerName www.mydomain.com
    ServerAdmin [email protected]

    DocumentRoot /var/www/www.mydomain.com
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    </Directory>
    <Directory /var/www/www.mydomain.com>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    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 ${APACHE_LOG_DIR}/error.log

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

    CustomLog ${APACHE_LOG_DIR}/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>


    wiseman:)
     
    Last edited: Mar 11, 2011
  2. falko

    falko Super Moderator ISPConfig Developer

    If /var/www/www.mydomain.com is your document root, you must place your files in that directory.
     

Share This Page