...
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
</Directory>
<Directory "/srv/www/htdocs">
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
</Directory>
AccessFileName .htaccess
<Files ~ "^.ht">
Order allow,deny
Deny from all
</Files>
...
Es geht nicht, aber ich weiß nicht warum, hat jemand schon mal das Problem gehabt oder kennt die Lösung?
Ignoriert er sie oder fehlt Dir einfach ein "RewriteEngine On"?
Um zu prüfen ob Deine ".htaccess" Datei gelesen wird, könntest Du "unfug" (sprich eine ungültige Anweisung) reinschreiben und gucken ob ein Serverfehler signalisiert wird.
Hallo, möglicherweise gibt es in dem vHost-Verzeichnis bereits eine .htaccess Datei, die genau diese Directory-Direktiven wieder außer Kraft setzt, oder es gibt noch einen anderen Directory-container, der diese Einstellungen überschreibt?
jack99 wrote:Hallo, möglicherweise gibt es in dem vHost-Verzeichnis bereits eine .htaccess Datei, die genau diese Directory-Direktiven wieder außer Kraft setzt, oder es gibt noch einen anderen Directory-container, der diese Einstellungen überschreibt?
viele Grüße
Wie meinst du das ? Ich bin Root, das mein Server da gibtes kein vhost gerade.
poste doch einfach mal die kompletten conf-files deines webservers, so kann man nur Vermutungen anstellen. Ich gehe davon aus, daß Du den Server mit den neuen Einstellungen reloaded hast?
cashworld wrote:
Wie meinst du das ? Ich bin Root, das mein Server da gibtes kein vhost gerade.
Hiho,
also VServer != VHost
als Vhost werden die in Apache angelegten unterschiedlichen Domain 7 Webpräsenzen bezeichnet. Dabei ist eine Apache Instanz also für mehrere Hosts(Webseiten) zuständig.
VServer sind mehrere auf einem physikalischen Server emulierte virtuellen Server. Ergo 1 PC, 20 von einander unabhängige Instanzen des Betriebssystems.
ServerName 88.198.53.109:80
Include /etc/apache2/uid.conf
Include /etc/apache2/server-tuning.conf
ErrorLog /var/log/apache2/error_log
Include /etc/apache2/sysconfig.d/loadmodule.conf
Include /etc/apache2/listen.conf
Include /etc/apache2/mod_log_config.conf
Include /etc/apache2/sysconfig.d/global.conf
Include /etc/apache2/mod_status.conf
Include /etc/apache2/mod_info.conf
Include /etc/apache2/mod_usertrack.conf
Include /etc/apache2/mod_autoindex-defaults.conf
TypesConfig /etc/apache2/mime.types
DefaultType text/plain
Include /etc/apache2/mod_mime-defaults.conf
Include /etc/apache2/errors.conf
Include /etc/apache2/ssl-global.conf
Include /etc/apache2/extra/httpd-ssl.conf
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
</Directory>
<Directory "/srv/www/htdocs/*******">
AllowOverride AuthConfig
AuthType Basic
AuthName "protected zone"
AuthUserFile /usr/.htpasswd
Require user admin
Order allow,deny
Allow from all
</Directory>
<Directory "/srv/www/htdocs/*******">
AllowOverride AuthConfig
AuthType Basic
AuthName "protected zone"
AuthUserFile /usr/.htpasswd
Require user admin
Order allow,deny
Allow from all
</Directory>
<Directory "/srv/www/htdocs/*******">
AllowOverride AuthConfig
AuthType Basic
AuthName "protected zone"
AuthUserFile /usr/.htpasswd
Require user admin
Order allow,deny
Allow from all
</Directory>
<Directory "/srv/www/htdocs/countersystem/*******">
AllowOverride AuthConfig
AuthType Basic
AuthName "protected zone"
AuthUserFile /usr/.htpasswd
Require user admin
Order allow,deny
Allow from all
</Directory>
<Directory "/srv/www/htdocs">
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
</Directory>
AccessFileName .htaccess
<Files ~ "^.ht">
Order allow,deny
Deny from all
</Files>
DirectoryIndex index.html index.html.var
Include /etc/apache2/default-server.conf
Include /etc/apache2/vhosts.d/*.conf
Wenn braucht ihr noch eine andere Conifg Datei?
DANKE SCHONMAL FÜR EURE HILFE.
Roger Wilco wrote:Eigentlich alle Konfigurationsdateien, die per Include eingebunden werden.
Ich hoffe, du meinst nicht, dass deine .htaccess in /srv/www/htdocs/countersystem/******* ignoriert wird...
Nein das sind Password geschützte Bereiche die ich in der httpd.conf setze, die gehen, aber wenn .htaccess Dateien in Ordnern liegen habe beachtet der Apache das nicht :(.
cashworld wrote:Nein das sind Password geschützte Bereiche die ich in der httpd.conf setze, die gehen, aber wenn .htaccess Dateien in Ordnern liegen habe beachtet der Apache das nicht :(.
Klar, weil AllowOverride für diese Verzeichnisse entsprechend restriktiv gesetzt ist.
DocumentRoot "/srv/www/htdocs"
<Directory "/srv/www/htdocs">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"
<Directory "/srv/www/cgi-bin">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
<IfModule mod_userdir.c>
UserDir public_html
Include /etc/apache2/mod_userdir.conf
</IfModule>
Include /etc/apache2/conf.d/*.conf
Kann es sein das das Problem mit meiner default-server.conf zusammen hängt??
DocumentRoot "/srv/www/htdocs"
#
# Configure the DocumentRoot
#
<Directory "/srv/www/htdocs">
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.2/mod/core.html#options
# for more information.
Options FollowSymLinks
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
AllowOverride All
# Controls who can get stuff from this server.
Order allow,deny
Allow from all
</Directory>