Apache /CaseSensitive Verzeichnissen-/Dateinamen abschalten

S

sevY

Hi,

gibt es die Möglichkeit das Case Sensitive bei Verzeichnissen-/Dateinamen(ich meine das ist CheckSpelling) per .htaccess abzuschalten?


Ansonsten, wo (Reihenfolge) kann ich es denn in meiner lokalen httpd.conf aktivieren, damit ich entsprechend coden und testen kann und die htaccess dann nicht mehr benötige?

Liebe Grüße

Yves
 
Ok, ich hab mich selbst ausgetrickst ;)

Jetzt müsste ich nur wissen, wo ich in meiner httpd.conf das CheckSpelling eintrage…



ServerType standalone
ServerRoot "/usr"
PidFile "/private/var/run/httpd.pid"
ScoreBoardFile "/private/var/run/httpd.scoreboard"
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 1
MaxSpareServers 5
StartServers 1
MaxClients 150
MaxRequestsPerChild 100000
LoadModule config_log_module libexec/httpd/mod_log_config.so
LoadModule mime_module libexec/httpd/mod_mime.so
LoadModule autoindex_module libexec/httpd/mod_autoindex.so
LoadModule dir_module libexec/httpd/mod_dir.so
LoadModule asis_module libexec/httpd/mod_asis.so
LoadModule imap_module libexec/httpd/mod_imap.so
LoadModule userdir_module libexec/httpd/mod_userdir.so
LoadModule alias_module libexec/httpd/mod_alias.so
LoadModule rewrite_module libexec/httpd/mod_rewrite.so
LoadModule access_module libexec/httpd/mod_access.so
LoadModule auth_module libexec/httpd/mod_auth.so
LoadModule setenvif_module libexec/httpd/mod_setenvif.so
LoadModule php4_module libexec/httpd/libphp4.so
LoadModule hfs_apple_module libexec/httpd/mod_hfs_apple.so
LoadModule rendezvous_apple_module libexec/httpd/mod_rendezvous_apple.so
ClearModuleList
AddModule mod_log_config.c
AddModule mod_mime.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_so.c
AddModule mod_setenvif.c
AddModule mod_php4.c
AddModule mod_hfs_apple.c
AddModule mod_rendezvous_apple.c
Port 80
User www
Group www
DocumentRoot "/Library/WebServer/Documents"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/Library/WebServer/Documents">
Options All
AllowOverride All
</Directory>
<IfModule mod_userdir.c>
UserDir Sites
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
UseCanonicalName On
<IfModule mod_mime.c>
TypesConfig /private/etc/httpd/mime.types
</IfModule>
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile /private/etc/httpd/magic
</IfModule>
HostnameLookups Off
ErrorLog "/private/var/log/httpd/error_log"
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
CustomLog "/private/var/log/httpd/access_log" common
ServerSignature Off
<IfModule mod_alias.c>
Alias /icons/ "/usr/share/httpd/icons/"
<Directory "/usr/share/httpd/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /manual/ "/Library/WebServer/Documents/manual/"
<Directory "/Library/WebServer/Documents/manual">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "/Library/WebServer/CGI-Executables/"
<Directory "/Library/WebServer/CGI-Executables">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_autoindex.c>
IndexOptions FancyIndexing
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README
HeaderName HEADER
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
</IfModule>
<IfModule mod_mime.c>
AddLanguage en .en
AddLanguage de .de
AddCharset ISO-8859-8 .iso8859-8
AddCharset UTF-8 .utf8
<IfModule mod_negotiation.c>
LanguagePriority en
</IfModule>
AddType application/x-tar .tgz
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
</IfModule>
<IfModule mod_setenvif.c>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
</IfModule>
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
</IfModule>
<IfModule mod_rendezvous_apple.c>
RegisterUserSite customized-users
</IfModule>
Include /private/etc/httpd/users/*.conf


Liebe Grüße

Yves

(…ich hab in der Config n wenig aufgeräumt, nicht wundern ;) )
 
Das Spelling Modul habe ich nun korrekt geladen und hinzugefügt.

Nun… wo muss das CheckSpelling On hin?¿?

Apache.org:

Context: server config, virtual host, directory, .htaccess

Tjo, nur irgendwie geht es weder per htaccess, noch in der config oder bei directory…

Hier nochmal meine Config mit den neuen Werten:

ServerType standalone
ServerRoot "/usr"
PidFile "/private/var/run/httpd.pid"
ScoreBoardFile "/private/var/run/httpd.scoreboard"
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 1
MaxSpareServers 5
StartServers 1
MaxClients 150
MaxRequestsPerChild 100000
LoadModule config_log_module libexec/httpd/mod_log_config.so
LoadModule mime_module libexec/httpd/mod_mime.so
LoadModule autoindex_module libexec/httpd/mod_autoindex.so
LoadModule dir_module libexec/httpd/mod_dir.so
LoadModule asis_module libexec/httpd/mod_asis.so
LoadModule imap_module libexec/httpd/mod_imap.so
LoadModule speling_module libexec/httpd/mod_speling.so
LoadModule userdir_module libexec/httpd/mod_userdir.so
LoadModule alias_module libexec/httpd/mod_alias.so
LoadModule rewrite_module libexec/httpd/mod_rewrite.so
LoadModule access_module libexec/httpd/mod_access.so
LoadModule auth_module libexec/httpd/mod_auth.so
LoadModule setenvif_module libexec/httpd/mod_setenvif.so
LoadModule php4_module libexec/httpd/libphp4.so
LoadModule hfs_apple_module libexec/httpd/mod_hfs_apple.so
LoadModule rendezvous_apple_module libexec/httpd/mod_rendezvous_apple.so
ClearModuleList
AddModule mod_log_config.c
AddModule mod_mime.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_speling.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_so.c
AddModule mod_setenvif.c
AddModule mod_php4.c
AddModule mod_hfs_apple.c
AddModule mod_rendezvous_apple.c
Port 80
User www
Group www
DocumentRoot "/Library/WebServer/Documents"
<Directory />
Options FollowSymLinks
Options All
AllowOverride All
CheckSpelling On
</Directory>
<IfModule mod_userdir.c>
UserDir Sites
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
UseCanonicalName On
<IfModule mod_mime.c>
TypesConfig /private/etc/httpd/mime.types
</IfModule>
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile /private/etc/httpd/magic
</IfModule>
HostnameLookups Off
ErrorLog "/private/var/log/httpd/error_log"
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
CustomLog "/private/var/log/httpd/access_log" common
ServerSignature Off
<IfModule mod_alias.c>
Alias /icons/ "/usr/share/httpd/icons/"
<Directory "/usr/share/httpd/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /manual/ "/Library/WebServer/Documents/manual/"
ScriptAlias /cgi-bin/ "/Library/WebServer/CGI-Executables/"
<Directory "/Library/WebServer/CGI-Executables">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_autoindex.c>
IndexOptions FancyIndexing
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README
HeaderName HEADER
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
</IfModule>
<IfModule mod_mime.c>
AddLanguage en .en
AddLanguage de .de
AddCharset ISO-8859-8 .iso8859-8
AddCharset UTF-8 .utf8
<IfModule mod_negotiation.c>
LanguagePriority en
</IfModule>
AddType application/x-tar .tgz
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
</IfModule>
<IfModule mod_setenvif.c>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
</IfModule>
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
</IfModule>
<IfModule mod_rendezvous_apple.c>
RegisterUserSite customized-users
</IfModule>
Include /private/etc/httpd/users/*.conf








Liebe Grüße

Yves
 
Zuletzt bearbeitet von einem Moderator:
Geil so ein Solo-Topic. o_O
 
Hi Yves

Mir ist nicht so ganz klar was du eigentlich erreichen willst, wenn Du dein Problem etwas besser spezifizieren könntest, wären wir vielleicht auch in der Lage unsere grauen Zellen in die richtigen Denkbahnen zu lenken.

Tip: wenn Du weitere Veränderungen der httpd.conf posten möchtest, reicht das Delta.

W
 
Hallo Woulion,

ich möchte derzeit, das mein Apache mittels Spelling Modul und dem Config Wert CheckSpelling On zwischen Groß- und Kleinschreibung unterscheidet.

PHP:
<?php

$test='pfad/datei.img';

if($test==strtoupper($test))
{
print 'Checkspelling ist off bzw nicht aktiv';
}
else
{
print 'Checkspelling ist On bzw aktiv';
}

?>


Ich möchte gerne, das bei der Ausführung des obigen Scriptes nun 'Checkspelling ist On bzw aktiv' als Ergebnis geliefert wird.

Wie passe ich dazu meine Konfiguration an? Das entsprechende Spelling Modul habe ich schon loaded & added. Normalerweise müsste ich den Wert CheckSpelling On ohne Probleme in die Config eintragen, um die Funktion des Moduls zu aktivieren, aber scheinbar will es nicht funktionieren.

Liebe Grüße

Yves
 
Hi

Leider kann ich zu dem Problem nicht allzuviel sagen, aber zumindest ist es jetzt so klar formuliert das sich sicherlich einer aus der Community finden wird, der das Problem lösen kann.

W
 
Zurück
Oben Unten