Hi,
das ist die Meldung, wenn ich im Firefox "http://locakhost/vnstat" eingebe.
Not Found
The requested URL /vnstat was not found on this server.
Apache/2.2.22 (Ubuntu) Server at localhost Port 80
Gemäß Wiki soll das für Apache eingetrgaen werden.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | grpc@grpc-MS-7658:/etc/vnstat-php$ cat apache.conf Alias /vnstat /usr/share/vnstat-php <Directory /usr/share/vnstat-php/> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all # Allow from all Allow from 127.0.0.0/255.0.0.0 ::1/128 <IfModule mod_php5.c> php_admin_flag engine On php_admin_value open_basedir "/usr/share/vnstat-php/:/etc/vnstat-php/" </IfModule> </Directory> |
Das scheint wohl nicht auszureichen ❓
Wenn der apache gestoppt wird kommt der Hinweis:
1 2 | grpc@grpc-MS-7658:~$ sudo apache2ctl stop Warning: DocumentRoot [/var/www/vnstat] does not exist |
Wenn ich den index.html copiere und als vnstat.htlml abspeichere, was muß ich dort eintragen ❓
1 2 3 4 5 6 7 8 | grpc@grpc-MS-7658:~$ cd /var/www grpc@grpc-MS-7658:/var/www$ dir index.html grpc@grpc-MS-7658:/var/www$ cat index.html <html><body><h1>It works!</h1> <p>This is the default web page for this server.</p> <p>The web server software is running but no content has been added, yet.</p> </body></html> |
Ich habe im "/etc/apache2/sites-available" die Datei "vnstat" angelegt und hoffentlich richtig aus der Default erstellt.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | grpc@grpc-MS-7658:/etc/apache2/sites-available$ dir default default-ssl vnstat vnstat~ grpc@grpc-MS-7658:/etc/apache2/sites-available$ cat vnstat <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName vnstat ServerAlias vnstat DocumentRoot /var/www/vnstat <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/vnstat> 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> |
Wo liegt der Fehler ❓ ❓