Current time: 12-26-2024, 02:56 PM Hello There, Guest! (LoginRegister)


Post Reply 
Apache hat plötzlich einen Fehler
Author Message
Foggy Offline
Junior Member
*

Posts: 52
Joined: Feb 2009
Reputation: 0
Post: #5
RE: Apache hat plötzlich einen Fehler
Hm ok, ich berichtige mich. Mein Apache hat jedesmal ein Problem wenn ich eine neue Subdomain anlege. Hier mal die aktuelle ispcp.conf. Zeilen 249 bis 260 machen Probleme. Wobei ich auch den selben Fehler erhalte wenn ich nur Zeilen 249 und 260 auskommentiere, also die Directory Einträge dazwischen kommentiert lasse. Sobald ich die IfModule Zeilen auf 249 und 260 auch in Kommentare umwandle gehts tip top.
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>

#
# Log processing.
#

LogFormat "%B" traff
LogFormat "%v %b %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" ispcplog

CustomLog "| /var/www/ispcp/engine/ispcp-apache-logger" ispcplog
ErrorLog "| /var/www/ispcp/engine/ispcp-apache-logger -e"

#
# mod_cband configuration
#

<IfModule mod_cband.c>
    CBandScoreFlushPeriod 10
    CBandRandomPulse On
</IfModule>

#
# let the customer decide what charset he likes to use
#

AddDefaultCharset Off

#
# Header End
#

# httpd [80.66.236.69] virtual host entry BEGIN.

NameVirtualHost 80.66.236.69:80

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

<IfModule mod_cband.c>
    <CBandUser lrm.ch>
        # CBandUserLimit 0Mi
        # CBandUserScoreboard /var/www/scoreboards/lrm.ch
        # CBandUserPeriod 4W
        # CBandUserPeriodSlice 1W
        # CBandUserExceededURL http://ispcp.uwd.ch/errors/bw_exceeded.html
    </CBandUser>
</IfModule>


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

# httpd [lrm.ch] dmn entry BEGIN.
<VirtualHost 80.66.236.69:80>

    <IfModule suexec_module>
           SuexecUserGroup vu2003 vu2003
    </IfModule>

    ServerAdmin     webmaster@lrm.ch
    DocumentRoot    /var/www/virtual/lrm.ch/htdocs

    ServerName      lrm.ch
    ServerAlias     www.lrm.ch lrm.ch *.lrm.ch

    Alias /errors   /var/www/virtual/lrm.ch/errors/

    RedirectMatch permanent ^/ftp([\/]?)        http://ispcp.uwd.ch/ftp/
    RedirectMatch permanent ^/pma([\/]?)        http://ispcp.uwd.ch/pma/
    RedirectMatch permanent ^/webmail([\/]?)    http://ispcp.uwd.ch/webmail/

    ErrorDocument 401 /errors/401.html
    ErrorDocument 403 /errors/403.html
    ErrorDocument 404 /errors/404.html
    ErrorDocument 500 /errors/500.html
    ErrorDocument 503 /errors/503.html

    <IfModule mod_cband.c>
        CBandUser lrm.ch
    </IfModule>

    # httpd awstats support BEGIN.

   ProxyRequests Off

   <Proxy *>
      Order deny,allow
      Allow from all
   </Proxy>

   ProxyPass            /stats    http://localhost/stats/lrm.ch
   ProxyPassReverse        /stats    http://localhost/stats/lrm.ch

    <Location /stats>
        AuthType Basic
        AuthName "Statistics for domain lrm.ch"
        AuthUserFile /var/www/virtual/lrm.ch/.htpasswd
        AuthGroupFile /var/www/virtual/lrm.ch/.htgroup
        Require group statistics
    </Location>

   # httpd awstats support END.

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

    <Directory /var/www/virtual/lrm.ch/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>

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

    Include /etc/httpd/vhosts/lrm.ch.conf

</VirtualHost>
# httpd [lrm.ch] dmn entry END.

# httpd [lrm.ch] dmn group entry END.

# httpd [dhdtv.ch] dmn group entry BEGIN.

<IfModule mod_cband.c>
    <CBandUser dhdtv.ch>
        # CBandUserLimit 0Mi
        # CBandUserScoreboard /var/www/scoreboards/dhdtv.ch
        # CBandUserPeriod 4W
        # CBandUserPeriodSlice 1W
        # CBandUserExceededURL http://ispcp.uwd.ch/errors/bw_exceeded.html
    </CBandUser>
</IfModule>


# httpd [shop.dhdtv.ch] sub entry BEGIN.
<VirtualHost 80.66.236.69:80>

    #
    #User vu2002
    #Group vu2002
    #

    <IfModule suexec_module>
           SuexecUserGroup vu2002 vu2002
    </IfModule>

    ServerAdmin     webmaster@dhdtv.ch
    DocumentRoot    /var/www/virtual/dhdtv.ch/shop/htdocs

    ServerName      shop.dhdtv.ch
    ServerAlias     www.shop.dhdtv.ch shop.dhdtv.ch *.shop.dhdtv.ch

    Alias /errors /var/www/virtual/dhdtv.ch/errors/

    ErrorDocument 401 /errors/401.html
    ErrorDocument 403 /errors/403.html
    ErrorDocument 404 /errors/404.html
    ErrorDocument 500 /errors/500.html
    ErrorDocument 503 /errors/503.html

    <IfModule mod_cband.c>
        CBandUser dhdtv.ch
    </IfModule>

    # httpd sub entry cgi support BEGIN.
    ScriptAlias /cgi-bin/ /var/www/virtual/dhdtv.ch/shop/cgi-bin/
    <Directory /var/www/virtual/dhdtv.ch/shop/cgi-bin>
        AllowOverride AuthConfig
        #Options ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
    # httpd sub entry cgi support END.

    <Directory /var/www/virtual/dhdtv.ch/shop/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/dhdtv.ch/:/var/www/virtual/dhdtv.ch/phptmp/:/usr/share/pear/"
        php_admin_value upload_tmp_dir "/var/www/virtual/dhdtv.ch/phptmp/"
        php_admin_value session.save_path "/var/www/virtual/dhdtv.ch/phptmp/"
        php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2002 -t -i'
    </IfModule>
    <IfModule mod_fastcgi.c>
        ScriptAlias /php5/ /var/www/fcgi/dhdtv.ch/
        <Directory "/var/www/fcgi/dhdtv.ch">
            AllowOverride None
            Options +ExecCGI -MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    #<IfModule mod_fcgid.c>
        #<Directory /var/www/virtual/dhdtv.ch/shop/htdocs>
            #FCGIWrapper /var/www/fcgi/dhdtv.ch/php5-fcgi-starter .php
            #Options +ExecCGI
        #</Directory>
        #<Directory "/var/www/fcgi/dhdtv.ch">
            #AllowOverride None
            #Options +ExecCGI MultiViews -Indexes
            #Order allow,deny
            #Allow from all
        #</Directory>
    #</IfModule>    # httpd sub entry PHP2 support END.

    Include /etc/httpd/vhosts/shop.dhdtv.ch.conf

</VirtualHost>
# httpd [shop.dhdtv.ch] sub entry END.

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

# httpd [dhdtv.ch] dmn entry BEGIN.
<VirtualHost 80.66.236.69:80>

    <IfModule suexec_module>
           SuexecUserGroup vu2002 vu2002
    </IfModule>

    ServerAdmin     webmaster@dhdtv.ch
    DocumentRoot    /var/www/virtual/dhdtv.ch/htdocs

    ServerName      dhdtv.ch
    ServerAlias     www.dhdtv.ch dhdtv.ch *.dhdtv.ch

    Alias /errors   /var/www/virtual/dhdtv.ch/errors/

    RedirectMatch permanent ^/ftp([\/]?)        http://ispcp.uwd.ch/ftp/
    RedirectMatch permanent ^/pma([\/]?)        http://ispcp.uwd.ch/pma/
    RedirectMatch permanent ^/webmail([\/]?)    http://ispcp.uwd.ch/webmail/

    ErrorDocument 401 /errors/401.html
    ErrorDocument 403 /errors/403.html
    ErrorDocument 404 /errors/404.html
    ErrorDocument 500 /errors/500.html
    ErrorDocument 503 /errors/503.html

    <IfModule mod_cband.c>
        CBandUser dhdtv.ch
    </IfModule>

    # httpd awstats support BEGIN.

   ProxyRequests Off

   <Proxy *>
      Order deny,allow
      Allow from all
   </Proxy>

   ProxyPass            /stats    http://localhost/stats/dhdtv.ch
   ProxyPassReverse        /stats    http://localhost/stats/dhdtv.ch

    <Location /stats>
        AuthType Basic
        AuthName "Statistics for domain dhdtv.ch"
        AuthUserFile /var/www/virtual/dhdtv.ch/.htpasswd
        AuthGroupFile /var/www/virtual/dhdtv.ch/.htgroup
        Require group statistics
    </Location>

   # httpd awstats support END.

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

    <Directory /var/www/virtual/dhdtv.ch/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>

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

    Include /etc/httpd/vhosts/dhdtv.ch.conf

</VirtualHost>
# httpd [dhdtv.ch] dmn entry END.

# httpd [dhdtv.ch] dmn group entry END.


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

# httpd [80.66.236.69] virtual host entry END.

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

# httpd Data END.
Blöde Frage, wo liegt denn das Template für den IfMOdule Block in Subdomains? Weil grundsätzlich kann ich da drauf verzichten....

Danke euch übrigens für die bisherigen Antworten...
Das Debugging muss ich mal noch besser umzusetzen versuchen...
03-24-2009 06:58 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Apache hat plötzlich einen Fehler - Foggy - 03-14-2009, 08:01 PM
RE: Apache hat plötzlich einen Fehler - Foggy - 03-24-2009 06:58 PM

Forum Jump:


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