![]() |
| | Themen-Optionen | Thema durchsuchen |
| | Nach oben #1 |
| Benutzer Registriert seit: 11.09.2006
Beiträge: 30
|
Hallo Leute! Ich will auf meinem Server mod_rewrite laden. Ich habe mich über root eingeloggt um zu schauen, wo die httpd.conf liegt und ob das LoadModule mod_rewrite aktiviert ist. in /etc/apache2/httpd.conf ist nur ein weiterer include auf die datei /etc/apache2/sysconfig.d/loadmodule.conf in dieser datei werden dann die Module geladen. gebe ich dort dann aber LoadModule rewrite_module /usr/lib/apache2-prefork/mod_rewrite.so ein und restarte den apache bekomme ich einen Fehler LoadModule: command not found und der befhetl ist wieder aus der datei gelöscht? kann mir jemand helfen wie ich dort mod_rewrite zum laufen bekomme. danke try |
| | |
| | Nach oben #2 |
| Benjamin Steininger Registriert seit: 02.06.2005 Ort: weiher im tiefsten Odenwald
Beiträge: 1.183
|
was passiert wenn du es ganz normal in die httpd.conf reinschreibst und den apache restartest ? ansonsten vieleicht mal die kompletten configs zum schauen posten oder irgendwo bereitstellen.
|
| | |
| | Nach oben #3 |
| Benutzer Registriert seit: 11.09.2006
Beiträge: 30
|
Dann funktioniert es auch nicht. Ich habe mir jetzt nochmal die Doku übersetzen lassen -.-. Inzwischen wird das Modul geladen, man musste in der httpd.conf ind der loadmodule.conf und in noch zwei weiteren dateien etwas hinzufügen, damit es geladen wird. Nur jetzt zeigt er mir nen 404 Zugriff Verweigert Fehler. Mache ich wieder nen Unload beachtet er die .htaccess datei gar nicht, da ich aber mod_rewrite brauche muss ichs natürlich dementsprechend auch laden. Habe mich da mal genauer erkundigt, der 404 Fehler hat irgendwas mit Options +FollowSymlinks zu tun. Doch bin ich da bisher auch nicht weiter gekommen... mfg try |
| | |
| | Nach oben #5 |
| Benutzer Registriert seit: 11.09.2006
Beiträge: 30
| [17/Sep/2006:16:22:56 +0200] "GET /index.php HTTP/1.1" 403 1125 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7" das steht überall wenn ichs probiert habe... mehr bekomm ich net aus den logs... hm wie meinste standard einstellungen.... kann ich die irgendwie auslesen ich kann ja schlecht mit putty kopieren.... ? mfg try |
| | |
| | Nach oben #6 |
| Benjamin Steininger Registriert seit: 02.06.2005 Ort: weiher im tiefsten Odenwald
Beiträge: 1.183
|
das ist ein eintrag in der access-log und nicht aus der errorlog! ich meine den code deiner httpd.conf und eventuell andere dateien die dort includet werden. -> in das htdocs-verzeichnis kopieren, über browser aufrufen, copy und paste hier ins forum, je nach größe vieleicht lokal speichern und als anhang anhängen oder wenn du nen 2ten webserver hast an dem nicht rumgespielt wird, dort hochladen und hier verlinken. mfg robo47 |
| | |
| | Nach oben #7 |
| Benutzer Registriert seit: 11.09.2006
Beiträge: 30
|
habe die error-logs nicht gefunden. hier die httpd.conf die andern include dateien kommen evtll. später... Code: #
# /etc/apache2/httpd.conf
#
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs-2.0/> for detailed information about
# the directives.
# Based upon the default apache configuration file that ships with apache,
# which is based upon the NCSA server configuration files originally by Rob
# McCool. This file was knocked together by Peter Poeml <poeml+apache@suse.de>.
# If possible, avoid changes to this file. It does mainly contain Include
# statements and global settings that can/should be overridden in the
# configuration of your virtual hosts.
# Overview of include files, chronologically:
#
# httpd.conf
# |
# |-- uid.conf . . . . . . . . . . . . . . UserID/GroupID to run under
# |-- server-tuning.conf . . . . . . . . . sizing of the server (how many processes to start, ...)
# |-- sysconfig.d/loadmodule.conf . . . . . [*] load these modules
# |-- listen.conf . . . . . . . . . . . . . IP adresses / ports to listen on
# |-- mod_log_config.conf . . . . . . . . . define logging formats
# |-- sysconfig.d/global.conf . . . . . . . [*] server-wide general settings
# |-- mod_status.conf . . . . . . . . . . . restrict access to mod_status (server monitoring)
# |-- mod_info.conf . . . . . . . . . . . . restrict access to mod_info
# |-- mod_usertrack.conf . . . . . . . . . defaults for cookie-based user tracking
# |-- mod_autoindex-defaults.conf . . . . . defaults for displaying of server-generated directory listings
# |-- mod_mime-defaults.conf . . . . . . . defaults for mod_mime configuration
# |-- errors.conf . . . . . . . . . . . . . customize error responses
# |-- ssl-global.conf . . . . . . . . . . . SSL conf that applies to default server _and all_ virtual hosts
# |
# |-- default-server.conf . . . . . . . . . set up the default server that replies to non-virtual-host requests
# | |--mod_userdir.conf . . . . . . . . enable UserDir (if mod_userdir is loaded)
# | `--conf.d/apache2-manual?conf . . . add the docs ('?' = if installed)
# |
# |-- sysconfig.d/include.conf . . . . . . [*] your include files
# | (for each file to be included here, put its name
# | into APACHE_INCLUDE_* in /etc/sysconfig/apache2)
# |
# `-- vhosts.d/ . . . . . . . . . . . . . . for each virtual host, place one file here
# `-- *.conf . . . . . . . . . . . . . (*.conf is automatically included)
#
#
# Files marked [*] are created from sysconfig upon server restart: instead of
# these files, you edit /etc/sysconfig/apache2
# Filesystem layout:
#
# /etc/apache2/
# |-- conf.d/
# | |-- apache2-manual.conf . . . . . . . conf that comes with apache2-doc
# | |-- mod_php4.conf . . . . . . . . . . (example) conf that comes with apache2-mod_php4
# | `-- ... . . . . . . . . . . . . . . . other configuration added by packages
# |-- default-server.conf
# |-- errors.conf
# |-- httpd.conf . . . . . . . . . . . . . top level configuration file
# |-- listen.conf
# |-- magic
# |-- mime.types -> ../mime.types
# |-- mod_autoindex-defaults.conf
# |-- mod_info.conf
# |-- mod_log_config.conf
# |-- mod_mime-defaults.conf
# |-- mod_perl-startup.pl
# |-- mod_status.conf
# |-- mod_userdir.conf
# |-- mod_usertrack.conf
# |-- server-tuning.conf
# |-- ssl-global.conf
# |-- ssl.crl/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificate Revocation Lists (CRL)
# |-- ssl.crt/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificates
# |-- ssl.csr/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificate Signing Requests
# |-- ssl.key/ . . . . . . . . . . . . . . PEM-encoded RSA Private Keys
# |-- ssl.prm/ . . . . . . . . . . . . . . public DSA Parameter Files
# |-- sysconfig.d/ . . . . . . . . . . . . files that are created from /etc/sysconfig/apache2
# | |-- global.conf
# | |-- include.conf
# | `-- loadmodule.conf
# |-- uid.conf
# `-- vhosts.d/ . . . . . . . . . . . . . . put your virtual host configuration (*.conf) here
# |-- vhost-ssl.template
# `-- vhost.template
### Global Environment ######################################################
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests.
# run under this user/group id
Include /etc/apache2/uid.conf
# - how many server processes to start (server pool regulation)
# - usage of KeepAlive
Include /etc/apache2/server-tuning.conf
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
ErrorLog /var/log/apache2/error_log
# generated from APACHE_MODULES in /etc/sysconfig/apache2
Include /etc/apache2/sysconfig.d/loadmodule.conf
# IP addresses / ports to listen on
Include /etc/apache2/listen.conf
# predefined logging formats
Include /etc/apache2/mod_log_config.conf
# generated from global settings in /etc/sysconfig/apache2
Include /etc/apache2/sysconfig.d/global.conf
# optional mod_status, mod_info
Include /etc/apache2/mod_status.conf
Include /etc/apache2/mod_info.conf
# optional cookie-based user tracking
# read the documentation before using it!!
Include /etc/apache2/mod_usertrack.conf
# configuration of server-generated directory listings
Include /etc/apache2/mod_autoindex-defaults.conf
# associate MIME types with filename extensions
TypesConfig /etc/apache2/mime.types
DefaultType text/plain
Include /etc/apache2/mod_mime-defaults.conf
# set up (customizable) error responses
Include /etc/apache2/errors.conf
# global (server-wide) SSL configuration, that is not specific to
# any virtual host
Include /etc/apache2/ssl-global.conf
# forbid access to the entire filesystem by default
<Directory />
Options None
AllowOverride None
Order deny,allow
Deny from all
</Directory>
# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
# List of resources to look for when the client requests a directory
DirectoryIndex index.html index.html.var
### 'Main' server configuration #############################################
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition. These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#
Include /etc/apache2/default-server.conf
# Another way to include your own files
#
# The file below is generated from /etc/sysconfig/apache2,
# include arbitrary files as named in APACHE_CONF_INCLUDE_FILES and
# APACHE_CONF_INCLUDE_DIRS
Include /etc/apache2/sysconfig.d/include.conf
### Virtual server configuration ############################################
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs-2.0/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
Include /etc/apache2/vhosts.d/*.conf
# Note: instead of adding your own configuration here, consider
# adding it in your own file (/etc/apache2/httpd.conf.local)
# putting its name into APACHE_CONF_INCLUDE_FILES in
# /etc/sysconfig/apache2 -- this will make system updates
# easier :-)
## CONFIXX
<Directory "/srv/www/htdocs/confixx/html">
Options +FollowSymlinks
AllowOverride all
</Directory>
NameVirtualHost xx.xx.xxx.xx:xx
<VirtualHost xx.xx.xxx.xx:xx>
ServerName alster017.server4you.de
Alias /phpmyadmin /srv/www/htdocs/phpMyAdmin
#User confixx
#Group users
DocumentRoot /srv/www/htdocs/confixx/html
php_admin_value safe_mode_exec_dir /srv/www/htdocs/confixx/bin
php_admin_value upload_tmp_dir /srv/www/htdocs/confixx/tmp
php_admin_value open_basedir none
#php_admin_value safe_mode off
ScriptAlias /cgi-bin/ /srv/www/htdocs/confixx/html/cgi-bin/
CustomLog /var/log/apache2/confixx_access.log "\%h \%l \%u \%t \"\%r\" \%s \%b \"\%{Referer}i\" \"\%{User-agent}i\""
ErrorLog /var/log/apache2/confixx_error.log
</VirtualHost>
Include /etc/apache2/confixx_vhost.conf
# ^- Dieser Eintrag sollte unbedingt am Ende der Datei bleiben
## /CONFIXX
|
| | |
| | Nach oben #8 |
| Jann Hendrik Bekaan Registriert seit: 02.12.2004 Ort: Wildeshausen
Beiträge: 2.214
|
wenn mich nicht alles täuscht, sollte sich dein error-log hier befinden: /var/log/apache2/error_log // edit: jedenfalls dann, wenn im virtual host nichts anderes definiert wurde. Und dort sehe ich einen Eintrag: /var/log/apache2/confixx_error.log Je nachdem also, welchen host das betrifft, wirst du dann die eine, oder die andere Datei nehmen müßen!
__________________ Umfragen: Wenn du dich in ein interessantes Thema eingearbeitet hast, dann lass andere daran teilhaben! Danke! Geändert von Jann Hendrik (17.09.2006 um 19:11 Uhr). |
| | |
| | Nach oben #9 |
| Benutzer Registriert seit: 11.09.2006
Beiträge: 30
|
also habe mal den log von eben gerade Code: [Sun Sep 17 19:23:42 2006] [error] [client xxx.xxx.xxx.xxx] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /srv/www/htdocs/web2/html/ mfg try |
| | |
| | Nach oben #10 |
| Benjamin Steininger Registriert seit: 02.06.2005 Ort: weiher im tiefsten Odenwald
Beiträge: 1.183
|
1) fürs nächste mal bitte, wenn ich mir die config anschaue, sind davon mehr als 50 % kommenatere, grad der obere block wo keine sachen zwischendrinstehne, sowas einfach weglassen, braucht man nicht 2) du musst für das betreffende Verzeichnis in dem der vhost läuft, die Option +Followsymlinks setzen, ich hab diesen block bei dir gefunden: Code: <Directory "/srv/www/htdocs/confixx/html"> Options +FollowSymlinks AllowOverride all </Directory> |
| | |
| | Nach oben #12 |
| Benutzer Registriert seit: 11.09.2006
Beiträge: 30
|
ah hab verstanden was du meinst... hm das problem passiert auch... die .htaccess wurde erkannt sobald ich jedoch im confixx ne domain zB änder wird wieder alles überschreiben.. bedeutet dafür muss ich auch ne datei ändern?
|
| | |
| | Nach oben #13 | |
| Benjamin Steininger Registriert seit: 02.06.2005 Ort: weiher im tiefsten Odenwald
Beiträge: 1.183
| Zitat:
naja du musst theorhetisch: entweder ne datei finden die confixx nicht verändert und es da reinschreiben (eine der configs die includet werden) oder rausfinden ob man das ganze vieleicht einfach via confixx freischalten kann ? bzw. eintragen kann ? mfg robo47 | |
| | |
![]() |
| Lesezeichen |
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
| Themen-Optionen | Thema durchsuchen |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [Xampp 1.6.2] Mysql kann nicht geladen werden, oder doch?! | kampfgnom | Tools, Server, Betriebssysteme | 10 | 14.07.2007 13:58 |
| Wie erkennen, wann Seite komplett geladen? | Basti77 | Allgemeine Java-Programmierung | 5 | 04.08.2005 12:23 |
| JApplet kann nicht geladen werden | Hot-Thunder | Desktop-Applikationen und Grafik | 5 | 01.07.2005 09:29 |
| Applet wird nicht geladen | kirashet | Desktop-Applikationen und Grafik | 2 | 09.06.2005 21:37 |