OK, man lernt aus mit diesen Kürzeln. Ich nehme immer nano.
Habe die Befehle ausgeführt. Wenn ich nun im Browser http://localhost/elchfan/contao-check.php oder http://localhost/elchfan/index.html eingebe, kommt die Meldung '404 - Not found'. Ich habe um sicher zu gehen einfache eine index.htnl auch mal in das Verzeichnis /home/elchfan/public_html kopiert.
Meine Dateien sehen so aus:
envvars:
Code:
# envvars - default environment variables for apache2ctl
# Since there is no sane way to get the parsed apache2 config in scripts, some
# settings are defined via environment variables and then used in apache2ctl,
# /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
export APACHE_RUN_USER=elchfan
export APACHE_RUN_GROUP=www-data
export APACHE_PID_FILE=/var/run/apache2.pid
## The locale used by some modules like mod_dav
export LANG=C
## Uncomment the following line to use the system default locale instead:
#. /etc/default/locale
export LANG
## The command to get the status for 'apache2ctl status'.
## Some packages providing 'www-browser' need '--dump' instead of '-dump'.
#export APACHE_LYNX='www-browser -dump'
000-default:
Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/elchfan/public_html
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/elchfan/public_html>
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 /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
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>
Muss man nun noch Virtual-Host laufen lassen oder warum habe ich keinen Zugriff mit dem Browser auf das Verzeichnis /home/elchfan/public_htm ?
Der Inhalt von public_html ist folgender:
Code:
elchfan@niger:~/public_html$ ls -l
insgesamt 440
-rw-r--r-- 1 elchfan www-data 524 2010-02-06 17:49 basic.css
-rw-r--r-- 1 elchfan www-data 9468 2010-08-08 13:42 CHANGELOG.txt
drwxr-xr-x 2 elchfan www-data 4096 2010-08-09 11:40 contao
-rw-r--r-- 1 elchfan www-data 309076 2010-08-09 12:49 contao-check.php
-rw-r--r-- 1 elchfan www-data 3415 2010-06-04 13:45 cron.php
-rw-r--r-- 1 elchfan www-data 32422 2009-11-06 15:15 GPL.txt
-rwxrwxrwx 1 elchfan www-data 9377 2009-10-27 07:11 index.html
-rw-r--r-- 1 elchfan www-data 9226 2010-07-29 23:45 index.php
-rw-r--r-- 1 elchfan www-data 1637 2010-06-04 13:45 INSTALL.txt
-rw-r--r-- 1 elchfan www-data 7637 2009-11-06 15:15 LGPL.txt
-rw-r--r-- 1 elchfan www-data 8571 2010-06-04 13:45 music_academy.css
drwxr-xr-x 15 elchfan www-data 4096 2010-08-09 11:40 plugins
-rw-r--r-- 1 elchfan www-data 157 2009-09-06 10:13 print.css
-rw-r--r-- 1 elchfan www-data 264 2010-06-04 13:45 robots.txt
-rw-r--r-- 1 elchfan www-data 1949 2010-06-04 13:45 share.php
drwxr-xr-x 10 elchfan www-data 4096 2010-08-09 11:40 system
drwxr-xr-x 2 elchfan www-data 4096 2010-08-09 11:40 templates
drwxr-xr-x 4 elchfan www-data 4096 2010-08-09 11:40 tl_files
drwxr-xr-x 2 elchfan www-data 4096 2010-08-09 11:40 typolight
elchfan@niger:~/public_html$
Lesezeichen