Apache 302 error from httpd.conf file, Server Down

danparker276_at_yahoo.com
Date: 07/26/05


Date: 26 Jul 2005 10:16:14 -0700

My application has been working for a long time. All of a sudden I get
get 302 error.
There are parts of the config file that work, www.myserver.com/status,
will work, but the default always gives me a 302, and I don't know how
to trace this? Any way to debug this?

I assume it got something to do with my virtual host
############################
### SECTION 3: Virtual Hosts
############################

Listen "443"
Listen "80"

###SSL Virtual Host###

AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl

<perl>
use lib '/mp3/tools/ecrm/lib';
use ECRM;
use IMAGES;

#my $ecrm_hostname = ECRM::get_system_hostname();
my $ecrm_hostname = 'https://myserver.net';
my $base_image_url = IMAGES::get_image_url();

$VirtualHost{'_default_:80'} = {
        RewriteEngine => 'On',
    RewriteCond => '$1 !server-status',
    RewriteRule => '^(.*)$ ' . $ecrm_hostname .
'$1?%{QUERY_STRING} [R,L]',
};

$VirtualHost{'_default_:443'} = {
        SSLEngine => 'on',
        SSLCipherSuite =>
'ALL:!ADH:!EXP56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL',
        SSLProtocol => 'all -SSLv3',
        SSLCertificateFile =>
'/mp3/tools/ssl/certs/ecrm.myreg.net.cert',
        SSLCertificateKeyFile =>
'/mp3/tools/ssl/private/ecrm.myreg.net.key',

        Redirect => "/index.html ${ecrm_hostname}/home",

        Location => {
                '/ssl-images' => {
                        RewriteEngine => 'On',
                        RewriteRule => '/ssl-images(.*) ' .
$base_image_url . '$1 [R,L]',
                }
        },

        Files => {
                 '~ "\.(cgi|shtml|phtml|php3?)$"' => {
                        SSLOptions => '+StdEnvVars',
                }
        },

        SetEnvIf => 'User-Agent ".*MSIE.*" nokeepalive
ssl-unclean-shutdown downgrade-1.0 force-response-1.0',

        LogLevel => 'debug',
        CustomLog => '"logs/ssl_log" combined',
        CustomLog => '"logs/ssl_extract_log" clickdata',
        SSLLogFile => '"logs/ssl_cipher_log"',
};

</perl>



Relevant Pages

  • Re: apache weird GET
    ... > That's why I said they may be port scans. ... Perhaps you've enabled ProxyRequests on a virtual host ... > The config file used is the one I edit, ...
    (RedHat)
  • Re: Apache 302 error from httpd.conf file, Server Down
    ... >There are parts of the config file that work, www.myserver.com/status, ... >I assume it got something to do with my virtual host ... >use ECRM; ... >use IMAGES; ...
    (comp.os.linux.networking)