Current time: 11-24-2024, 01:54 AM Hello There, Guest! (LoginRegister)


Post Reply 
Mod rewrite
Author Message
Sven Flöck Offline
Junior Member
*

Posts: 15
Joined: Sep 2008
Reputation: 0
Post: #1
Mod rewrite
Ist in der Final Mod _rewirte aktiviert? Wenn nein wie mache ich das?? Wink
03-26-2009 09:32 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Mod rewrite
Schau einfach mal nach was Du alles aktiviert hast:
Code:
ls -l /etc/apache2/mods-enabled

Kann mich nicht daran erinnern das ispCP es automatisch aktiviert hat.

Greez BeNe
03-27-2009 05:28 PM
Visit this user's website Find all posts by this user Quote this message in a reply
nolimithosting Offline
Junior Member
*

Posts: 135
Joined: Sep 2008
Reputation: 0
Post: #3
RE: Mod rewrite
a2enmod rewrite zum aktivieren Wink
03-27-2009 06:51 PM
Find all posts by this user Quote this message in a reply
micheal Offline
Junior Member
*

Posts: 15
Joined: Oct 2009
Reputation: 0
Post: #4
RE: Mod rewrite
Hallo, ich mach hier mal weiter!

Ich bekomm das rewrite nicht zum laufen: Der obige Befehl wirft mir unter anderem das hier aus:

Code:
ls -l /etc/apache2/mods-enabled
rewrite.load -> ../mods-available/rewrite.load

Aber mod_rewrite scheint nicht zu funktionieren! Zumindest werden keiner meiner URLs umgeschrieben!

edit: Hab noch ein bissl mehr gefunden

Code:
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_USER_AGENT} ^LWP::Simple
    RewriteRule ^/.* http://%{REMOTE_ADDR}/ [L,E=nolog:1]
</IfModule>
(This post was last modified: 10-09-2009 01:40 AM by micheal.)
10-09-2009 01:28 AM
Find all posts by this user Quote this message in a reply
ZooL Offline
Moderator
*****
Moderators

Posts: 3,429
Joined: Jan 2007
Reputation: 79
Post: #5
RE: Mod rewrite
da steht ja auch available deaktiviert mach einen systemlink ins verzeichnis mods-enable oooooder
(03-27-2009 06:51 PM)nolimithosting Wrote:  a2enmod rewrite zum aktivieren Wink
10-09-2009 01:38 AM
Visit this user's website Find all posts by this user Quote this message in a reply
micheal Offline
Junior Member
*

Posts: 15
Joined: Oct 2009
Reputation: 0
Post: #6
RE: Mod rewrite
a2enmod rewrite

gibt aus, das rewrite schon aktiviert sei!

Wo genau steht, das es deaktiviert ist? Weil is in "available" gelistet ist? Müsste es in enabled gelistet sein?
(This post was last modified: 10-09-2009 01:58 AM by micheal.)
10-09-2009 01:57 AM
Find all posts by this user Quote this message in a reply
ZooL Offline
Moderator
*****
Moderators

Posts: 3,429
Joined: Jan 2007
Reputation: 79
Post: #7
RE: Mod rewrite
(10-09-2009 01:57 AM)micheal Wrote:  Müsste es in enabled gelistet sein?

jo
10-09-2009 03:41 AM
Visit this user's website Find all posts by this user Quote this message in a reply
micheal Offline
Junior Member
*

Posts: 15
Joined: Oct 2009
Reputation: 0
Post: #8
RE: Mod rewrite
Hallo, also mod_rewrite ist immer noch nicht aktiviert:

Das Modul ist auf dem Server:
Code:
find /usr -name mod_rewrite.so
/usr/lib/apache2/modules/mod_rewrite.so

Dann noch die /etc/apache2/mods-enabled/rewrite.load
Code:
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so

Die /etc/apache2/sites-available/00_master.conf sieht so aus
Code:
<Directory /var/www/ispcp/gui>
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride all
        Order allow,deny
        Allow from all
    </Directory>

    <IfModule mod_fcgid.c>
        <Directory /var/www/ispcp/gui>
            FCGIWrapper /var/www/fcgi/master/php5-fcgi-starter .php
            Options +ExecCGI
        </Directory>
        <Directory "/var/www/fcgi/master">
            AllowOverride all
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    <IfModule mod_fastcgi.c>
        ScriptAlias /php5/ /var/www/fcgi/master/
        <Directory "/var/www/fcgi/master">
            AllowOverride all
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>

Die /etc/apache2/sites-available/ispcp.conf sieht so aus

Code:
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_USER_AGENT} ^LWP::Simple
    RewriteRule ^/.* http://%{REMOTE_ADDR}/ [L,E=nolog:1]
</IfModule>

Alle Domains in dieser Datei sind wie folgt:

Code:
# httpd sub entry cgi support BEGIN.
    ScriptAlias /cgi-bin/ /var/www/virtual/mydomains.tld/DOMAIN/subdomains/SUB/cgi-bin/
    <Directory /var/www/virtual/mydomains.tld/DOMAIN/subdomains/SUB/cgi-bin>
        AllowOverride all
        #Options ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
    # httpd sub entry cgi support END.

    <Directory /var/www/virtual/mydomains.tld/DOMAIN/subdomains/SUB/htdocs>
        # httpd sub entry PHP support BEGIN.
        # httpd sub entry PHP support END.
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride all
        Order allow,deny
        Allow from all
    </Directory>

    # httpd sub entry PHP2 support BEGIN.
    <IfModule mod_php5.c>
        php_admin_value open_basedir "/var/www/virtual/mydomains.tld/:/var/www/virtual/mydomains.tld/phptmp/:/usr/share/php/"
        php_admin_value upload_tmp_dir "/var/www/virtual/mydomains.tld/phptmp/"
        php_admin_value session.save_path "/var/www/virtual/mydomains.tld/phptmp/"
        php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2001 -t -i'
    </IfModule>
    <IfModule mod_fastcgi.c>
        ScriptAlias /php5/ /var/www/fcgi/mydomains.tld/
        <Directory "/var/www/fcgi/mydomains.tld">
            AllowOverride all
            Options +ExecCGI -MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>    </IfModule>
    <IfModule mod_fcgid.c>
        <Directory /var/www/virtual/mydomains.tld/DOMAIN/subdomains/SUB/htdocs>
            FCGIWrapper /var/www/fcgi/mydomains.tld/php5-fcgi-starter .php
            Options +ExecCGI
        </Directory>
        <Directory "/var/www/fcgi/mydomains.tld">
            AllowOverride all
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    # httpd sub entry PHP2 support END.

Alles erdenkliche ist aktiviert, aber mod_rewrite schein nicht zu funktionieren. Any hints?

Und entschuldigt die Frage, aber mod_rewrite lief zuvor immer problemlos: Irgendwas scheine ich zu übersehen mit ispcp
10-09-2009 09:54 PM
Find all posts by this user Quote this message in a reply
ZooL Offline
Moderator
*****
Moderators

Posts: 3,429
Joined: Jan 2007
Reputation: 79
Post: #9
RE: Mod rewrite
(10-09-2009 09:54 PM)micheal Wrote:  Und entschuldigt die Frage, aber mod_rewrite lief zuvor immer problemlos: Irgendwas scheine ich zu übersehen mit ispcp
meld dich per icq ich schalte es dir ein bevor der thread noch 3 wochen so weiter geht Tongue
10-10-2009 12:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)