Current time: 11-22-2024, 03:05 PM Hello There, Guest! (LoginRegister)


Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Gelöst] 403 Frobidden
Author Message
grex Offline
Junior Member
*

Posts: 156
Joined: Sep 2007
Reputation: 0
Post: #1
[Gelöst] 403 Frobidden
Hallo, ich wollte einen fastdownload server für meinen gameserver einrichten doch, es kommt diese Meldung:
403 forbidden...

die adresse:
http://hs-surf.com/zombie/cstrike


weiss hier einer ne Lösung wie ich hier alles ohne PW freigeben kann? Denn es muss erreichbar sein,.... es ist keien index.* vorhanden, ich will einfach nur die Ordnerstruktur sichtbar machen...


bitte helft mir,
Ihr seit super!


Lg
Grex
(This post was last modified: 10-07-2007 09:24 PM by Breaki.)
09-30-2007 06:23 PM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: 403 Frobidden
http://httpd.apache.org/docs/2.0/mod/core.html#options
Indexes
Wenn eine URL, die auf ein Verzeichnis zeigt, in dem sich keine durch DirectoryIndex definierte Indexdatei (z.B. index.html) befindet, dann liefert mod_autoindex eine formatierte Auflistung des Verzeichnisses zurück.

/Joximu
09-30-2007 06:34 PM
Visit this user's website Find all posts by this user
grex Offline
Junior Member
*

Posts: 156
Joined: Sep 2007
Reputation: 0
Post: #3
RE: 403 Frobidden
ehm ja, was muss ich den jetzt machen? sry aber ich finde da nichts,....

könntest du mir erklären, welche Datei ich aufmachen muss un dob ich indexes oder mutliviews... nehmen soll?

Wäre sehr nett von dir.
(This post was last modified: 09-30-2007 06:44 PM by grex.)
09-30-2007 06:41 PM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: 403 Frobidden
Am einfachsten dürfte sein:
in /etc/apache2/sites-enabled/ispcp.conf (ist ein Symlink) im Abschnitt des betreffenden vhosts das zu ändern...
such den Block:
Code:
<Directory /var/www/virtual/hs-surf.com/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>

und da statt -Indexes, ein +Indexes reinschreiben.

Danach unbedingt eine Kopie dieser Datei nach /etc/ispcp/apache2/working machen, sonst überschreibt ispcp das bei der nächsten Änderung.

Du kannst auch einen neuen <Directory....> Block eintragen, nur für das zombie/cstrike Verzeichnis:
Code:
<Directory /var/www/virtual/hs-surf.com/htdocs/zombie/cstrike>
        Options +Indexes
    </Directory>

oder das ganze in eine .htaccess-Datei, die dann in das entsprechende Verzeichnis kommt - jedoch bin ich mir nicht sicher, ob AllowOverride entsprechend gesetzt ist für das.

Hoffe das hilft mal weiter.

Gruss Joximu
09-30-2007 06:59 PM
Visit this user's website Find all posts by this user
grex Offline
Junior Member
*

Posts: 156
Joined: Sep 2007
Reputation: 0
Post: #5
RE: 403 Frobidden
hmmm das funktioniert nicht ganz....

etc/apache2/sites-enabled/ispcp.conf :
Code:
# httpd Data BEGIN.

#
# wget-hack prevention
#

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

#
# Web traffic accounting.
#

LogFormat "%B" traff

#
# AWStats
#

Alias /awstatsclasses "/var/www/awstats/classes/"
Alias /awstatscss "/var/www/awstats/css/"
Alias /awstatsicons "/var/www/awstats/icon/"
Alias /awstatsjs "/var/www/awstats/js/"
Alias /stats "/usr/lib/cgi-bin/awstats/"

<Directory /usr/lib/cgi-bin/awstats>
    AllowOverride AuthConfig
    Options -Includes FollowSymLinks +ExecCGI MultiViews
    AddHandler cgi-script cgi pl
    DirectoryIndex awstats.pl
    Order deny,allow
    Allow from all
</Directory>

#
# Header End
#

# httpd [91.184.38.129] virtual host entry BEGIN.

NameVirtualHost 91.184.38.129:80

# httpd [hs-surf.com] dmn group entry BEGIN.

# httpd [test.hs-surf.com] sub entry BEGIN.
<VirtualHost 91.184.38.129:80>

    #
    #User vu2003
    #Group vu2003
    #

    SuexecUserGroup vu2003 vu2003

    ServerAdmin     root@hs-surf.com
    DocumentRoot    /var/www/virtual/hs-surf.com/test/htdocs

    ServerName      test.hs-surf.com
    ServerAlias     www.test.hs-surf.com test.hs-surf.com *.test.hs-surf.com

    ErrorLog        /var/log/apache2/users/test.hs-surf.com-error.log
    TransferLog     /var/log/apache2/users/test.hs-surf.com-access.log

    CustomLog       /var/log/apache2/hs-surf.com-traf.log traff
    CustomLog       /var/log/apache2/hs-surf.com-combined.log combined

    Alias /errors /var/www/virtual/hs-surf.com/errors/

    <Directory /var/www/virtual/hs-surf.com/errors/>
        <IfModule mod_php4.c>
            php_admin_value open_basedir "/var/www/virtual/hs-surf.com/errors/"
        </IfModule>
    </Directory>

    ErrorDocument 401 /errors/401/index.php
    ErrorDocument 403 /errors/403/index.php
    ErrorDocument 404 /errors/404/index.php
    ErrorDocument 500 /errors/500/index.php

    # httpd sub entry cgi support BEGIN.
    ScriptAlias /cgi-bin/ /var/www/virtual/hs-surf.com/test/cgi-bin/
    <Directory /var/www/virtual/hs-surf.com/test/cgi-bin>
        AllowOverride None
        #Options ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
    # httpd sub entry cgi support END.

    <IfModule mod_fastcgi.c>
        ScriptAlias /php4/ /var/www/fcgi/hs-surf.com/
        <Directory "/var/www/fcgi/hs-surf.com">
            AllowOverride None
            Options +ExecCGI -MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>

    <IfModule mod_php4.c>
        <Directory /var/www/ispcp/gui>
            php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/proc/:/var/www/virtual/:/tmp/:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
            php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
        </Directory>
    </IfModule>

    # httpd sub entry PHP2 support BEGIN.
    <IfModule mod_php4.c>
        php_admin_value open_basedir "/var/www/virtual/hs-surf.com/test:/var/www/virtual/hs-surf.com/test/phptmp:/usr/share/php"
        php_admin_value upload_tmp_dir "/var/www/virtual/hs-surf.com/test/phptmp"
        php_admin_value session.save_path "/var/www/virtual/hs-surf.com/test/phptmp"
        php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2003 -t -i'
    </IfModule>
    # httpd sub entry PHP2 support END.

    <Directory /var/www/virtual/hs-surf.com/test/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>

</VirtualHost>
# httpd [test.hs-surf.com] sub entry END.

# httpd [{SUB_NAME}] sub entry BEGIN.
# httpd [{SUB_NAME}] sub entry END.

# httpd [hs-surf.com] dmn entry BEGIN.
<VirtualHost 91.184.38.129:80>

    <IfModule mod_fastcgi.c>
        SuexecUserGroup vu2003 vu2003
    </IfModule>

    ServerAdmin     root@hs-surf.com
    DocumentRoot    /var/www/virtual/hs-surf.com/htdocs

    ServerName      hs-surf.com
    ServerAlias     www.hs-surf.com hs-surf.com *.hs-surf.com

    ErrorLog        /var/log/apache2/users/hs-surf.com-error.log
    TransferLog     /var/log/apache2/users/hs-surf.com-access.log

    CustomLog       /var/log/apache2/hs-surf.com-traf.log traff
    CustomLog       /var/log/apache2/hs-surf.com-combined.log combined

    Alias /errors   /var/www/virtual/hs-surf.com/errors/

    ErrorDocument 401 /errors/401/index.php
    ErrorDocument 403 /errors/403/index.php
    ErrorDocument 404 /errors/404/index.php
    ErrorDocument 500 /errors/500/index.php

    Redirect /stats http://hs-surf.com/awstats/awstats.pl
    Redirect /ispcp http://ve311804405.providerbox.net

    # httpd dmn entry cgi support BEGIN.
    ScriptAlias /cgi-bin/ /var/www/virtual/hs-surf.com/cgi-bin/
    <Directory /var/www/virtual/hs-surf.com/cgi-bin>
        AllowOverride None
        #Options ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
    # httpd dmn entry cgi support END.

    <IfModule mod_fastcgi.c>
        ScriptAlias /php4/ /var/www/fcgi/hs-surf.com/
        <Directory "/var/www/fcgi/hs-surf.com">
            AllowOverride None
            Options +ExecCGI -MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>

    <IfModule mod_php4.c>
        <Directory /var/www/ispcp/gui>
            php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/proc/:/var/www/virtual/:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
            php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
        </Directory>
    </IfModule>

    # httpd dmn entry PHP2 support BEGIN.
    <IfModule mod_php4.c>
        php_admin_value open_basedir "/var/www/virtual/hs-surf.com:/var/www/virtual/hs-surf.com/phptmp:/usr/share/php"
        php_admin_value upload_tmp_dir "/var/www/virtual/hs-surf.com/phptmp"
        php_admin_value session.save_path "/var/www/virtual/hs-surf.com/phptmp"
        php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2003 -t -i'
    </IfModule>
    # httpd dmn entry PHP2 support END.

    <Directory /var/www/virtual/hs-surf.com/htdocs>
        # httpd dmn entry PHP support BEGIN.
        # httpd dmn entry PHP support END.
        Options +Indexes Includes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

</VirtualHost>
# httpd [hs-surf.com] dmn entry END.

# httpd [hs-surf.com] dmn group entry END.

# httpd [{DMN_GRP}] dmn group entry BEGIN.
# httpd [{DMN_GRP}] dmn group entry END.

# httpd [{ALS_NAME}] als entry BEGIN.
# httpd [{ALS_NAME}] als entry END.

# httpd [91.184.38.129] virtual host entry END.

# httpd [{IP}] virtual host entry BEGIN.
# httpd [{IP}] virtual host entry END.

# httpd Data END.

<Directory /var/www/virtual/hs-surf.com/htdocs/zombie/cstrike>
        Options +Indexes
    </Directory>
und in etc/ispcp/apache/working/ispcp.conf ( gibt kein apache2 ,... ) :
Code:
# httpd Data BEGIN.

#
# wget-hack prevention
#

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

#
# Web traffic accounting.
#

LogFormat "%B" traff

#
# AWStats
#

Alias /awstatsclasses "/var/www/awstats/classes/"
Alias /awstatscss "/var/www/awstats/css/"
Alias /awstatsicons "/var/www/awstats/icon/"
Alias /awstatsjs "/var/www/awstats/js/"
Alias /stats "/usr/lib/cgi-bin/awstats/"

<Directory /usr/lib/cgi-bin/awstats>
    AllowOverride AuthConfig
    Options -Includes FollowSymLinks +ExecCGI MultiViews
    AddHandler cgi-script cgi pl
    DirectoryIndex awstats.pl
    Order deny,allow
    Allow from all
</Directory>

#
# Header End
#

# httpd [91.184.38.129] virtual host entry BEGIN.

NameVirtualHost 91.184.38.129:80

# httpd [hs-surf.com] dmn group entry BEGIN.

# httpd [test.hs-surf.com] sub entry BEGIN.
<VirtualHost 91.184.38.129:80>

    #
    #User vu2003
    #Group vu2003
    #

    SuexecUserGroup vu2003 vu2003

    ServerAdmin     root@hs-surf.com
    DocumentRoot    /var/www/virtual/hs-surf.com/test/htdocs

    ServerName      test.hs-surf.com
    ServerAlias     www.test.hs-surf.com test.hs-surf.com *.test.hs-surf.com

    ErrorLog        /var/log/apache2/users/test.hs-surf.com-error.log
    TransferLog     /var/log/apache2/users/test.hs-surf.com-access.log

    CustomLog       /var/log/apache2/hs-surf.com-traf.log traff
    CustomLog       /var/log/apache2/hs-surf.com-combined.log combined

    Alias /errors /var/www/virtual/hs-surf.com/errors/

    <Directory /var/www/virtual/hs-surf.com/errors/>
        <IfModule mod_php4.c>
            php_admin_value open_basedir "/var/www/virtual/hs-surf.com/errors/"
        </IfModule>
    </Directory>

    ErrorDocument 401 /errors/401/index.php
    ErrorDocument 403 /errors/403/index.php
    ErrorDocument 404 /errors/404/index.php
    ErrorDocument 500 /errors/500/index.php

    # httpd sub entry cgi support BEGIN.
    ScriptAlias /cgi-bin/ /var/www/virtual/hs-surf.com/test/cgi-bin/
    <Directory /var/www/virtual/hs-surf.com/test/cgi-bin>
        AllowOverride None
        #Options ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
    # httpd sub entry cgi support END.

    <IfModule mod_fastcgi.c>
        ScriptAlias /php4/ /var/www/fcgi/hs-surf.com/
        <Directory "/var/www/fcgi/hs-surf.com">
            AllowOverride None
            Options +ExecCGI -MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>

    <IfModule mod_php4.c>
        <Directory /var/www/ispcp/gui>
            php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/proc/:/var/www/virtual/:/tmp/:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
            php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
        </Directory>
    </IfModule>

    # httpd sub entry PHP2 support BEGIN.
    <IfModule mod_php4.c>
        php_admin_value open_basedir "/var/www/virtual/hs-surf.com/test:/var/www/virtual/hs-surf.com/test/phptmp:/usr/share/php"
        php_admin_value upload_tmp_dir "/var/www/virtual/hs-surf.com/test/phptmp"
        php_admin_value session.save_path "/var/www/virtual/hs-surf.com/test/phptmp"
        php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2003 -t -i'
    </IfModule>
    # httpd sub entry PHP2 support END.

    <Directory /var/www/virtual/hs-surf.com/test/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>

</VirtualHost>
# httpd [test.hs-surf.com] sub entry END.

# httpd [{SUB_NAME}] sub entry BEGIN.
# httpd [{SUB_NAME}] sub entry END.

# httpd [hs-surf.com] dmn entry BEGIN.
<VirtualHost 91.184.38.129:80>

    <IfModule mod_fastcgi.c>
        SuexecUserGroup vu2003 vu2003
    </IfModule>

    ServerAdmin     root@hs-surf.com
    DocumentRoot    /var/www/virtual/hs-surf.com/htdocs

    ServerName      hs-surf.com
    ServerAlias     www.hs-surf.com hs-surf.com *.hs-surf.com

    ErrorLog        /var/log/apache2/users/hs-surf.com-error.log
    TransferLog     /var/log/apache2/users/hs-surf.com-access.log

    CustomLog       /var/log/apache2/hs-surf.com-traf.log traff
    CustomLog       /var/log/apache2/hs-surf.com-combined.log combined

    Alias /errors   /var/www/virtual/hs-surf.com/errors/

    ErrorDocument 401 /errors/401/index.php
    ErrorDocument 403 /errors/403/index.php
    ErrorDocument 404 /errors/404/index.php
    ErrorDocument 500 /errors/500/index.php

    Redirect /stats http://hs-surf.com/awstats/awstats.pl
    Redirect /ispcp http://ve311804405.providerbox.net

    # httpd dmn entry cgi support BEGIN.
    ScriptAlias /cgi-bin/ /var/www/virtual/hs-surf.com/cgi-bin/
    <Directory /var/www/virtual/hs-surf.com/cgi-bin>
        AllowOverride None
        #Options ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
    # httpd dmn entry cgi support END.

    <IfModule mod_fastcgi.c>
        ScriptAlias /php4/ /var/www/fcgi/hs-surf.com/
        <Directory "/var/www/fcgi/hs-surf.com">
            AllowOverride None
            Options +ExecCGI -MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>

    <IfModule mod_php4.c>
        <Directory /var/www/ispcp/gui>
            php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/proc/:/var/www/virtual/:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
            php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
        </Directory>
    </IfModule>

    # httpd dmn entry PHP2 support BEGIN.
    <IfModule mod_php4.c>
        php_admin_value open_basedir "/var/www/virtual/hs-surf.com:/var/www/virtual/hs-surf.com/phptmp:/usr/share/php"
        php_admin_value upload_tmp_dir "/var/www/virtual/hs-surf.com/phptmp"
        php_admin_value session.save_path "/var/www/virtual/hs-surf.com/phptmp"
        php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2003 -t -i'
    </IfModule>
    # httpd dmn entry PHP2 support END.

    <Directory /var/www/virtual/hs-surf.com/htdocs>
        # httpd dmn entry PHP support BEGIN.
        # httpd dmn entry PHP support END.
        Options +Indexes Includes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

<Directory /var/www/virtual/hs-surf.com/htdocs/zombie/cstrike>
        Options +Indexes
    </Directory>
</VirtualHost>

# httpd [hs-surf.com] dmn entry END.

# httpd [hs-surf.com] dmn group entry END.

# httpd [{DMN_GRP}] dmn group entry BEGIN.
# httpd [{DMN_GRP}] dmn group entry END.

# httpd [{ALS_NAME}] als entry BEGIN.
# httpd [{ALS_NAME}] als entry END.

# httpd [91.184.38.129] virtual host entry END.

# httpd [{IP}] virtual host entry BEGIN.
# httpd [{IP}] virtual host entry END.

# httpd Data END.
hoffe du findes einen fehler....
(This post was last modified: 09-30-2007 07:12 PM by grex.)
09-30-2007 07:10 PM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: 403 Frobidden
Wenn ich das richtig lese, dann hast du den Directory-Block in der Sicherungskopie richtig platziert (innerhalb des VirtualHost...) in der eigentlichen ispcp.conf jedoch ausserhalb.

/J
09-30-2007 07:14 PM
Visit this user's website Find all posts by this user
grex Offline
Junior Member
*

Posts: 156
Joined: Sep 2007
Reputation: 0
Post: #7
RE: 403 Frobidden
ok die sicherungskopie ist in /etc/ispcp/apache/workling drinne?

ich weiss jetzt net was davon die sicherungskopie ist....
09-30-2007 07:19 PM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #8
RE: 403 Frobidden
ja, Sicherungskopie oder Arbeitskopie...
ispcp kopiert sich sein Ergebnis immer nach /etc/ispcp/<dienst>/working und baut spätere Änderungen dann ausgehend von diesen Versionen ein.

Wichtig ist einfach, dass der <Directory>... Block innerhalb des <VirtualHost>- Blocks ist, denn nur dann hat er auch gültigkeit für den Virtuellen Host (hs-surf.com).

Da es in der "Working"-Version richtig scheint, sollte es reichen, wenn du noch eine Alias-Domain oder subdomain hinzufügst (danach kannst du es wieder löschen) - ispcp schreibt das dann in die produktive Config-Datei (innerhalb /etc/apache...).

Alles klar?
Gruss J
09-30-2007 07:28 PM
Visit this user's website Find all posts by this user
grex Offline
Junior Member
*

Posts: 156
Joined: Sep 2007
Reputation: 0
Post: #9
RE: 403 Frobidden
^^ jetzt kommt error 500 internal server error...
09-30-2007 08:30 PM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #10
RE: 403 Frobidden
hm. Es klappt bei mir...

Nur zur Info: es reicht eines der beiden "+Indexes...", entweder für die ganze Domains (dann ist es im bestehenden Directory block) oder nur das Verzeichnis cstrike/..., dann brauchts den neuen Directory-Block...

Zum Fehler: in der error.log sollte mehr drinstehen.
ErrorLog /var/log/apache2/users/hs-surf.com-error.log

Joximu
09-30-2007 09:18 PM
Visit this user's website Find all posts by this user
Thread Closed 


Forum Jump:


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