Apache Mod_Rewrite spinnt.....

Apache, Lighttpd, nginx, Cherokee
iroot
Posts: 36
Joined: 2007-07-05 20:10

Apache Mod_Rewrite spinnt.....

Post by iroot » 2008-01-15 21:14

Also, ich habe wiedermal ein Problem mit meinem Apache :roll:

Also, ich möchte für einen meiner Kunden mod_rewrite aktivieren, leider bekomme ich das irgendwie nicht hin :(
Hier die vhost conf Datei:

Code: Select all

                <VirtualHost *:80>
                ServerName www.kunde.meinhoster.de
                ServerAlias kunde.meinhoster.de *.kunde.meinhoster.de
                DocumentRoot /var/www/ftp/users/kunde
                SuexecUserGroup kunde web-user

                <Directory />
                AddHandler fcgid-script .php
                FCGIWrapper /var/www/php_wrappers/kunde/kunde.meinhoster.de .php
                <Files *.php>
                        Options ExecCGI
                </Files>


                AllowOverride  AuthConfig Limit Fileinfo
                Options +FollowSymLinks +SymLinksIfOwnerMatch
                </Directory>

                CustomLog /var/www/logs/acces_kunde.meinhoster.de combined

                 </VirtualHost>





Hier der Error aus meinem Apache Log:

Code: Select all

Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/ftp/users/kunde/test/rewrite.php


Hier das was in der .htaccess im Verzeichniss /var/www/ftp/users/kunde/test/rewrite.php steht:

Code: Select all

RewriteEngine On
RewriteRule ^link([^/]*).html$ rewrite.php?link=$1 [L]


Wenn ich nun die Seite Aufrufe erhalte ich einen 403 Error Forbidden. Ich habe mich schon krumm gegoogelt aber dort seteht nur dass ich Symlinks und das zeuchs aktivieren soll was ich ja auch gemacht haeb wie man an der vhost.conf sieht.

Ich hoffe ihr könnt mir möglichst schnell helfen :)

Liebe Grüsse

IRoot

User avatar
Joe User
Project Manager
Project Manager
Posts: 11138
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Apache Mod_Rewrite spinnt.....

Post by Joe User » 2008-01-15 22:27

Ich fürchte Deine komplette httpd.conf ist völlig verbugt, weshalb Du sie mal komplett, aber ohne Kommentare, posten solltest.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.

iroot
Posts: 36
Joined: 2007-07-05 20:10

Re: Apache Mod_Rewrite spinnt.....

Post by iroot » 2008-01-15 22:45

Mache ich doch gerne :)
obwohl ich habe nie gross an der apache konfiguration herumgefummelt :roll:

Code: Select all

Tuxelechen:/etc/apache2# sed '/^[[:space:]]*([#;].*)*$/d' apache2.conf
ServerRoot "/var/www"
LockFile /var/lock/apache2/accept.lock
PidFile /var/run/apache2.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>
<IfModule mpm_worker_module>
    StartServers          2
    MaxClients          150
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadsPerChild      25
    MaxRequestsPerChild   0
</IfModule>
User www-data
Group www-data
AccessFileName .htaccess
<Files ~ "^.ht">
    Order allow,deny
    Deny from all
</Files>
TypesConfig /etc/mime.types
DefaultType text/plain
HostnameLookups Off
ErrorLog /var/log/apache2/error.log
LogLevel warn
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
Include /etc/apache2/httpd.conf
Include /etc/apache2/ports.conf
Include /etc/apache2/conf.d/
LogFormat "%v %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
LogFormat "%host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot" statistik
ServerTokens Full
ServerSignature On
<IfModule alias_module>
    Alias /icons/ "/usr/share/apache2/icons/"
    <Directory "/usr/share/apache2/icons">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
</IfModule>
<IfModule mod_autoindex.c>
    IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=*
    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.html
    HeaderName HEADER.html
    IndexIgnore .??* *~ *# RCS CVS *,v *,t
</IfModule>
<IfModule mod_mime.c>
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddLanguage ca .ca
    AddLanguage cs .cz .cs
    AddLanguage da .dk
    AddLanguage de .de
    AddLanguage el .el
    AddLanguage en .en
    AddLanguage eo .eo
    AddLanguage es .es
    AddLanguage et .et
    AddLanguage fr .fr
    AddLanguage he .he
    AddLanguage hr .hr
    AddLanguage it .it
    AddLanguage ja .ja
    AddLanguage ko .ko
    AddLanguage ltz .ltz
    AddLanguage nl .nl
    AddLanguage nn .nn
    AddLanguage no .no
    AddLanguage pl .po
    AddLanguage pt .pt
    AddLanguage pt-BR .pt-br
    AddLanguage ru .ru
    AddLanguage sv .sv
    AddLanguage zh-CN .zh-cn
    AddLanguage zh-TW .zh-tw
</IfModule>
<IfModule mod_negotiation.c>
    LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
    ForceLanguagePriority Prefer Fallback
</IfModule>
<IfModule mod_mime.c>
    AddDefaultCharset ISO-8859-15
    AddCharset us-ascii    .ascii .us-ascii
    AddCharset ISO-8859-1  .iso8859-1  .latin1
    AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen
    AddCharset ISO-8859-3  .iso8859-3  .latin3
    AddCharset ISO-8859-4  .iso8859-4  .latin4
    AddCharset ISO-8859-5  .iso8859-5  .cyr .iso-ru
    AddCharset ISO-8859-6  .iso8859-6  .arb .arabic
    AddCharset ISO-8859-7  .iso8859-7  .grk .greek
    AddCharset ISO-8859-8  .iso8859-8  .heb .hebrew
    AddCharset ISO-8859-9  .iso8859-9  .latin5 .trk
    AddCharset ISO-8859-10  .iso8859-10  .latin6
    AddCharset ISO-8859-13  .iso8859-13
    AddCharset ISO-8859-14  .iso8859-14  .latin8
    AddCharset ISO-8859-15  .iso8859-15  .latin9
    AddCharset ISO-8859-16  .iso8859-16  .latin10
    AddCharset ISO-2022-JP .iso2022-jp .jis
    AddCharset ISO-2022-KR .iso2022-kr .kis
    AddCharset ISO-2022-CN .iso2022-cn .cis
    AddCharset Big5        .Big5       .big5 .b5
    AddCharset cn-Big5     .cn-big5
    AddCharset WINDOWS-1251 .cp-1251   .win-1251
    AddCharset CP866       .cp866
    AddCharset KOI8      .koi8
    AddCharset KOI8-E      .koi8-e
    AddCharset KOI8-r      .koi8-r .koi8-ru
    AddCharset KOI8-U      .koi8-u
    AddCharset KOI8-ru     .koi8-uk .ua
    AddCharset ISO-10646-UCS-2 .ucs2
    AddCharset ISO-10646-UCS-4 .ucs4
    AddCharset UTF-7       .utf7
    AddCharset UTF-8       .utf8
    AddCharset UTF-16      .utf16
    AddCharset UTF-16BE    .utf16be
    AddCharset UTF-16LE    .utf16le
    AddCharset UTF-32      .utf32
    AddCharset UTF-32BE    .utf32be
    AddCharset UTF-32LE    .utf32le
    AddCharset euc-cn      .euc-cn
    AddCharset euc-gb      .euc-gb
    AddCharset euc-jp      .euc-jp
    AddCharset euc-kr      .euc-kr
    AddCharset EUC-TW      .euc-tw
    AddCharset gb2312      .gb2312 .gb
    AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2
    AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4
    AddCharset shift_jis   .shift_jis .sjis
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    AddHandler type-map var
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
</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
    BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
    BrowserMatch "MS FrontPage" redirect-carefully
    BrowserMatch "^WebDrive" redirect-carefully
    BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
    BrowserMatch "^gnome-vfs/1.0" redirect-carefully
    BrowserMatch "^XML Spy" redirect-carefully
    BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
</IfModule>
Include /etc/apache2/sites-enabled/
Include /var/www/ftp/user-hosts/

User avatar
Joe User
Project Manager
Project Manager
Posts: 11138
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Apache Mod_Rewrite spinnt.....

Post by Joe User » 2008-01-15 23:18

Es fehlen noch folgende Includes:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
Include /etc/apache2/httpd.conf
Include /etc/apache2/ports.conf
Include /etc/apache2/conf.d/
Include /etc/apache2/sites-enabled/
Include /var/www/ftp/user-hosts/

/me: hasst modulare Configs...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.

bernsteinkater
Posts: 67
Joined: 2006-06-27 11:47

Re: Apache Mod_Rewrite spinnt.....

Post by bernsteinkater » 2008-01-15 23:26

Joe User wrote:Es fehlen noch folgende Includes:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
Include /etc/apache2/httpd.conf
Include /etc/apache2/ports.conf
Include /etc/apache2/conf.d/
Include /etc/apache2/sites-enabled/
Include /var/www/ftp/user-hosts/

Die sind doch alle drin?!

User avatar
Joe User
Project Manager
Project Manager
Posts: 11138
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Apache Mod_Rewrite spinnt.....

Post by Joe User » 2008-01-15 23:47

Mir fehlt der Inhalt der includierten Configs, sonst kann ich Dir nicht helfen. Wenn sich die VHosts nur in den Pfaden unterscheiden, genügt mir einer als Beispiel, ansonsten bitte den Umfangreichsten (Domainnamen darfst Du anonymisieren).
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.

iroot
Posts: 36
Joined: 2007-07-05 20:10

Re: Apache Mod_Rewrite spinnt.....

Post by iroot » 2008-01-16 14:13

Ok, ich hoffe mal ich kann noch wichtige Informationen liefern :)
Hier das Include Verzeichniss /etc/apache2/sites-enabled

Code: Select all

Tuxelechen:~# cd /etc/apache2/sites-enabled/
Tuxelechen:/etc/apache2/sites-enabled# ls -la
insgesamt 84
drwxr-xr-x 2 root root 4096 2008-01-14 20:06 .
drwxr-xr-x 7 root root 4096 2008-01-15 21:05 ..
lrwxrwxrwx 1 root root   36 2007-08-11 10:14 000-default -> /etc/apache2/sites-available/default
-rw-r--r-- 1 root root  223 2008-01-14 20:04 000-default~
-rw-r--r-- 1 root root  221 2007-09-03 19:38 000-defaultc~
-rw-r--r-- 1 root root  522 2007-11-01 12:03 admin.meinhoster.de

-rw-r--r-- 1 root root  529 2007-11-01 12:03 admin.meinhoster.de~
-rw-r--r-- 1 root root  221 2007-09-02 13:55 site.meinhoster.de-rw-r--r-- 1 root root  220 2007-09-02 13:55 site.meinhoster.de~
-rw-r--r-- 1 root root  629 2007-11-02 11:52 mail.meinhoster.de
-rw-r--r-- 1 root root  626 2007-11-02 11:52 mail.meinhoster.de~
lrwxrwxrwx 1 root root   38 2007-08-11 10:14 subdomain -> /etc/apache2/sites-available/subdomain
-rw-r--r-- 1 root root  211 2007-08-11 11:04 subdomain~
lrwxrwxrwx 1 root root   39 2007-08-16 14:07 subdomain2 -> /etc/apache2/sites-available/subdomain2
-rw-r--r-- 1 root root  303 2007-08-22 19:54 subdomain2~
-rw-r--r-- 1 root root  733 2008-01-13 09:31 page.net
-rw-r--r-- 1 root root  223 2008-01-13 09:31 page.net~
-rw-r--r-- 1 root root  205 2007-08-27 17:40 blog.org
-rw-r--r-- 1 root root  204 2007-08-27 17:40 blog.org~
-rw-r--r-- 1 root root  618 2007-12-22 15:36 typo.meinhoster.de
-rw-r--r-- 1 root root  617 2007-12-22 15:36 typo.meinhoster.de~
-rw-r--r-- 1 root root  578 2007-12-15 21:57 webftp.meinhoster.de
-rw-r--r-- 1 root root  683 2008-01-14 20:06 meinhoster.de
-rw-r--r-- 1 root root  697 2008-01-14 20:06 meinhoster.de~
Tuxelechen:/etc/apache2/sites-enabled#

Leider sind fast alle Dateien die dort drinne sind unterschiedlich, ich poste mal den Inhalt der nach meiner meinung nach relevanten :)

000-default,soll einfach den Direkten Ip aufruf nach /var/www weiterleiten darum auch nur fakealiases

Code: Select all

NameVirtualHost *:80
<VirtualHost *:80>
ServerName  www.any.servert
ServerAlias www.any.server
DocumentRoot /var/www

<Location /blog>
        deny from all
</Location>
</VirtualHost>


admin.meinhoster.de

Code: Select all

<VirtualHost *:80>
ServerName www.admin.meinhoster.de
ServerAlias admin.meinhoster.de www.admin.meinhoster.de
DocumentRoot /var/www/phpmyadmin

                SuexecUserGroup www-data www-data

                <Directory /var/www/phpmyadmin>
                AddHandler fcgid-script .php
                FCGIWrapper /var/www/php_wrappers/www.meinhoster.de/meinhoster.de .php
                <Files *.php>
                        Options ExecCGI
                </Files>
                AllowOverride All
                </Directory>



</VirtualHost>


meinhoster.de

Code: Select all

<VirtualHost *:80>
ServerName www.meinhoster.de
ServerAlias meinhoster.de *.www.meinhoster.de
DocumentRoot /var/www/ftp

SuexecUserGroup www-data www-data


     <Directory /var/www/ftp/>
                AddHandler fcgid-script .php
                FCGIWrapper /var/www/php_wrappers/www.meinhoster.de/meinhoster.de .php
                <Files *.php>
                        Options ExecCGI
                </Files>
      </Directory>

    <Directory /var/www/ftp/cgi/>
        allow from all
        Options ExecCGI
    </Directory>


CustomLog /var/log/apache2/access_meinhoster.log combined





<Directory />
        AllowOverride all
</Directory>
<Location /users>
        deny from all
</Location>


</VirtualHost>


So, jetzt erstmal die einen teil der Ordnestruktur von /var/www/ftp/user-hosts

Code: Select all

kunde.meinhoster.de                kunde1.meinhoster.de            kunde2.meinhoster.de            kunde3.meinhoster.de              kunde4.meinhoster.de      kude4.meinhoster.de


Eigentlich haben alle Kunden die Selbe Config, ausser bei denenen ich nun mod_rewrite installieren muss, und diese wurde schon oben gepostet.

Standartconfig für Kunden:

Code: Select all

                <VirtualHost *:80>
                ServerName www.kunde1.meinhoster.de
                ServerAlias kunde1.meinhoster.de *.kunde1.meinhoster.de
                DocumentRoot /var/www/ftp/users/p3n

                SuexecUserGroup kunde1 web-user

                <Directory /var/www/ftp/users/kunde1>
                AddHandler fcgid-script .php
                FCGIWrapper /var/www/php_wrappers/kunde1/kunde1.meinhoster.de .php
                <Files *.php>
                        Options ExecCGI
                </Files>
                </Directory>

                CustomLog /var/www/logs/acces_kunde.meinhoster.de combined

                 </VirtualHost>

djcrackman
Posts: 207
Joined: 2005-06-02 11:58

Re: Apache Mod_Rewrite spinnt.....

Post by djcrackman » 2008-01-16 14:52

Adaptiere deinen Directory-Block um die Zeile Options, dann sollte die RewriteRule funktionieren:

Code: Select all

                <Directory /var/www/ftp/users/kunde1>
                Options FollowSymlinks
                AddHandler fcgid-script .php
                FCGIWrapper /var/www/php_wrappers/kunde1/kunde1.meinhoster.de .php
                <Files *.php>
                        Options ExecCGI
                </Files>
                </Directory>

User avatar
Joe User
Project Manager
Project Manager
Posts: 11138
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Apache Mod_Rewrite spinnt.....

Post by Joe User » 2008-01-16 15:45

Als Erstes entsorgst Du die ganzen Sicherheitskopien Deines Editors aus den Config-Directories und besorgst Dir einen anstandigen Editor.

Anbei schonmal die überarbeiteten VHoss, für die eigentliche Config fehlen mir noch die anderen Includes.

000-default

Code: Select all

NameVirtualHost *:80
<VirtualHost _default_:80>
    ServerName www.domain.tld
    DocumentRoot "/var/www/default"
    <Directory "/var/www/default">
        Options -All +FollowSymLinks +ExecCGI
        AllowOverride Options FileInfo AuthConfig Limit
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>


admin.meinhoster.de

Code: Select all

<VirtualHost *:80>
    ServerName www.admin.meinhoster.de
    ServerAlias admin.meinhoster.de
    DocumentRoot "/var/www/phpmyadmin"
    <Directory "/var/www/phpmyadmin">
        Options -All +FollowSymLinks +ExecCGI
        AllowOverride Options FileInfo AuthConfig Limit
        Order allow,deny
        Allow from all
    </Directory>
    AddHandler fcgid-script .php
    FCGIWrapper /var/www/php_wrappers/www.meinhoster.de/meinhoster.de .php
    SuexecUserGroup www-data www-data
</VirtualHost>


meinhoster.de

Code: Select all

<VirtualHost *:80>
    ServerName www.meinhoster.de
    ServerAlias meinhoster.de *.meinhoster.de
    DocumentRoot "/var/www/ftp"
    <Directory "/var/www/ftp">
        Options -All +FollowSymLinks +ExecCGI
        AllowOverride Options FileInfo AuthConfig Limit
        Order allow,deny
        Allow from all
    </Directory>
    <Location /users>
        deny from all
    </Location>
    AddHandler fcgid-script .php
    FCGIWrapper /var/www/php_wrappers/www.meinhoster.de/meinhoster.de .php
    SuexecUserGroup www-data www-data
    CustomLog "/var/log/apache2/access_meinhoster.de.log" combined
</VirtualHost>


kunde.meinhoster.de

Code: Select all

<VirtualHost *:80>
    ServerName www.kunde.meinhoster.de
    ServerAlias kunde.meinhoster.de *.kunde.meinhoster.de
    DocumentRoot "/var/www/ftp/users/kunde"
    <Directory "/var/www/ftp/users/kunde">
        Options -All +FollowSymLinks +ExecCGI
        AllowOverride Options FileInfo AuthConfig Limit
        Order allow,deny
        Allow from all
    </Directory>
    AddHandler fcgid-script .php
    FCGIWrapper /var/www/php_wrappers/kunde.meinhoster.de/kunde.meinhoster.de .php
    SuexecUserGroup kunde web-user
    CustomLog "/var/log/apache2/access_kunde.meinhoster.de.log" combined
</VirtualHost>


Für 000-default musst Du nur noch das Verzeichnis /var/www/default anlegen.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.

User avatar
daemotron
Administrator
Administrator
Posts: 2635
Joined: 2004-01-21 17:44

Re: Apache Mod_Rewrite spinnt.....

Post by daemotron » 2008-01-16 20:19

@Joe User: vi(m) ist doch anständig - man muss ihm nur mitteilen, dass man keine Sicherheitskopien wünscht 8)

User avatar
Joe User
Project Manager
Project Manager
Posts: 11138
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Apache Mod_Rewrite spinnt.....

Post by Joe User » 2008-01-16 20:27

Ich mag vi(m) nunmal nicht, mir reicht nano ;) Zudem muss man nano nicht erst (um)konfigurieren, um sinnvoll damit arbeiten zu können. Und für die erweiterten Features von vi(m) gibt es ausreichend Consolen-Tools. Geschmacks- und Gewohnheitsfrage halt...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.

iroot
Posts: 36
Joined: 2007-07-05 20:10

Re: Apache Mod_Rewrite spinnt.....

Post by iroot » 2008-01-17 13:32

ehm... danke aber bei:

Code: Select all

<VirtualHost *:80>
    ServerName www.kunde.meinhoster.de
    ServerAlias kunde.meinhoster.de *.kunde.meinhoster.de
    DocumentRoot "/var/www/ftp/users/kunde"
    <Directory "/var/www/ftp/users/kunde">
        Options -All +FollowSymLinks +ExecCGI
        AllowOverride Options FileInfo AuthConfig Limit
        Order allow,deny
        Allow from all
    </Directory>
    AddHandler fcgid-script .php
    FCGIWrapper /var/www/php_wrappers/kunde.meinhoster.de/kunde.meinhoster.de .php
    SuexecUserGroup kunde web-user
    CustomLog "/var/log/apache2/access_kunde.meinhoster.de.log" combined
</VirtualHost>


sagt mein Apache:
FCGIWrapper ist not allowed here oder so ähnlich bein starten :D

Wo muss ich den dass hinpacken?

Danke

Gruss

IRoot

User avatar
Joe User
Project Manager
Project Manager
Posts: 11138
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Apache Mod_Rewrite spinnt.....

Post by Joe User » 2008-01-17 16:19

Oops, packe die beiden Zeilen mit AddHandler und FCGIWrapper vor die Options in den Directory Container.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.