JiYu
blutiger Anfänger
Mojen,
ich bekomm einfach nicht hin das mein user directory (~/public_html) von meinem Apache angenommen wird *grml*. Hier mal die Configs und die Logs:
/usr/local/etc/apache2/httpd.conf
/usr/local/etc/apache2/Includes/user.conf
und jetzt das komische /var/log/httpd-error.log:
Das mit dem Vhost ist ja erstmal egal, aber wenn ich auf http://localhost/~steffen/ versuche zu gehen, dann zeigt er diesen client Fehler und im Browser sehe ich:
The requested URL /~steffen/ was not found on this server.
Bin mit meinem Latain am Ende, evtl. hab ich auch mal wieder nur was kleines vergessen, aber ich finde es nicht
Danke! && JiYu
ich bekomm einfach nicht hin das mein user directory (~/public_html) von meinem Apache angenommen wird *grml*. Hier mal die Configs und die Logs:
/usr/local/etc/apache2/httpd.conf
Code:
# =================================================
# Basic settings
# =================================================
ServerRoot "/usr/local"
PidFile /var/run/httpd.pid
# =================================================
# Performance settings
# =================================================
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
# =================================================
# General settings
# =================================================
Listen 80
User www
Group www
ServerAdmin webmaster@whatever.com
UseCanonicalName On
ServerSignature Off
HostnameLookups On
ServerTokens Prod
DocumentRoot "/usr/local/www/data/"
DirectoryIndex index.html index.html.var index.htm index.php
# =================================================
# Modules to be included
# =================================================
# Notwendige Module, die wir benötigen
LoadModule access_module libexec/apache2/mod_access.so
LoadModule auth_module libexec/apache2/mod_auth.so
LoadModule include_module libexec/apache2/mod_include.so
LoadModule log_config_module libexec/apache2/mod_log_config.so
LoadModule mime_magic_module libexec/apache2/mod_mime_magic.so
LoadModule mime_module libexec/apache2/mod_mime.so
LoadModule status_module libexec/apache2/mod_status.so
LoadModule cgi_module libexec/apache2/mod_cgi.so
LoadModule dir_module libexec/apache2/mod_dir.so
LoadModule userdir_module libexec/apache2/mod_userdir.so
LoadModule alias_module libexec/apache2/mod_alias.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
LoadModule php5_module libexec/apache2/libphp5.so
#LoadModule external_auth_module libexec/apache2/mod_auth_external.so
# =================================================
# Access control
# =================================================
# Files mit dem Namen .htaccess können in Ordner
# reingetan werden, die unerlaubte Personen davon
# abhalten, das innere dieses Ordners anzusehen.
<Directory />
Options FollowSymlinks Includes
AllowOverride
Order deny,allow
Allow from 127.0.0.1/8
</Directory>
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
# =================================================
# MIME encoding
# =================================================
TypesConfig etc/apache2/mime.types
DefaultType text/plain
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
AddType application/x-tar .tgz
AddType application/x-httpd-php .php .htm .html
AddType application/x-httpd-php-source .phps
# =================================================
# Logs
# =================================================
# Definiert, wie das Log Format aussieht. Hier
# sollte man alles in Ruhe lassen und nichts
# verändern.
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
ErrorLog /var/log/httpd-error.log
# =================================================
# Virtual hosts
# =================================================
# Definiert, auf welcher IP Adresse und auf
# welchem Port Apache Verbindungen entgegen
# nimmt. Hier musst du deine IP Adresse mit
# einem weiteren sollten Eintrag angeben.
NameVirtualHost 127.0.0.1:80
#NameVirtualHost <deine ip>:80
# Definiert, die Rechte für das Hauptverzeichnis
# wo sich all eure Webverzeichnisse drin befinden.
<Directory "/data/www">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# Die Konfiguration meiner Vhosts habe
# ich in separaten Files gespeichert.
# Include *.conf besagt, dass alle Files in
# diesem Verzeichnis eingelesen werden, die
# die mit der Endung .conf aufhören
Include etc/apache2/Includes/*.conf
/usr/local/etc/apache2/Includes/user.conf
Code:
<Directory /usr/home/*/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
und jetzt das komische /var/log/httpd-error.log:
Code:
[Wed Aug 09 08:52:16 2006] [warn] NameVirtualHost 127.0.0.1:80 has no VirtualHosts
[Wed Aug 09 08:52:16 2006] [notice] Apache configured -- resuming normal operations
[Wed Aug 09 08:54:43 2006] [error] [client ::1] Attempt to serve directory: /usr/home/steffen/public_html/
The requested URL /~steffen/ was not found on this server.
Bin mit meinem Latain am Ende, evtl. hab ich auch mal wieder nur was kleines vergessen, aber ich finde es nicht

Danke! && JiYu
