RT / Apache setup problem

I’ve just setup a basic RT installation on my test server (RH9) and it appears to be working so far.

I am trying to use named virtual hosts to allow my RT installation to coexist with some other (PHP based) web apps I am also running on this server.

I have 2 problems:

  1. I can no longer access any of my other web apps on this same server.

  2. I can only connect to the RT web interface using HTTPS.

When I look in my boot logs I can see an error message as follows:

“httpd: [Fri Aug 22 16:00:45 2003][error] VirtualHost_default_:443 – mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results.”

I assume that this is the problem that is forcing https and preventing me from accessing my other web apps.

Trouble is that no such “VirtualHost_default_:443” configuration exists in my httpd.conf file.

Can anyone advise on where to find this config and how to change it?

My VirtualHost block in httpd.conf looks like this:

NameVirtualHost *

<VirtualHost *>
DocumentRoot /var/www/html
ServerName xxx.xxx.xxx.xxx
ServerAlias donkey

<VirtualHost >
ServerName rt
DocumentRoot /opt/rt3/share/html
DirectoryIndex index.html index.html.var
AddDefaultCharset UTF-8
PerlModule Apache2 Apache::compat
PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl

SetHandler perl-script
PerlHandler RT::Mason
RedirectMatch permanent (.
)/$ https://rt$1/index.html

Note I have deliberately configured the RedirectMatch URL to use https scheme because I can only access the top page using https and this makes the internal links work properly.

Any help much appreciated.

This one time, at band camp, Richard Foxworthy wrote:

Trouble is that no such “VirtualHost_default_:443” configuration exists in my httpd.conf file.

Check /etc/httpd/conf.f/ssl.conf, that tends to have a default:443 vhost
entry that I’ve seen break every mod_ssl+apache rollout on RH8 and 9 I’ve
done so far.

jaq@spacepants.org http://spacepants.org/jaq.gpg

I’ve seen this error message before with Redhat 9 and apache, and
virtual hosting, it has something to do with ssl (which runs on port
443).
You need to explicitly state port 80 in your httpd.conf for your virtual
host section(s):
<VirtualHost *:80>

If you do a deja.com on this you might find a more indepth explanation.

/Patrice-----Original Message-----
From: rt-users-admin@lists.fsck.com
[mailto:rt-users-admin@lists.fsck.com] On Behalf Of Richard Foxworthy
Sent: Tuesday, August 26, 2003 6:08 AM
To: rt-users@lists.fsck.com
Subject: [rt-users] RT / Apache setup problem

I’ve just setup a basic RT installation on my test server (RH9) and it
appears to be working so far.

I am trying to use named virtual hosts to allow my RT installation to
coexist with some other (PHP based) web apps I am also running on this
server.

I have 2 problems:

  1. I can no longer access any of my other web apps on this same server.

  2. I can only connect to the RT web interface using HTTPS.

When I look in my boot logs I can see an error message as follows:

“httpd: [Fri Aug 22 16:00:45 2003][error] VirtualHost_default_:443 –
mixing * ports and non-* ports with a NameVirtualHost address is not
supported, proceeding with undefined results.”

I assume that this is the problem that is forcing https and preventing
me from accessing my other web apps.

Trouble is that no such “VirtualHost_default_:443” configuration exists
in my httpd.conf file.

Can anyone advise on where to find this config and how to change it?

My VirtualHost block in httpd.conf looks like this:

NameVirtualHost *

<VirtualHost *>
DocumentRoot /var/www/html
ServerName xxx.xxx.xxx.xxx
ServerAlias donkey

<VirtualHost >
ServerName rt
DocumentRoot /opt/rt3/share/html
DirectoryIndex index.html index.html.var
AddDefaultCharset UTF-8
PerlModule Apache2 Apache::compat
PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl

SetHandler perl-script
PerlHandler RT::Mason
RedirectMatch permanent (.
)/$ https://rt$1/index.html

Note I have deliberately configured the RedirectMatch URL to use https
scheme because I can only access the top page using https and this makes
the internal links work properly.

Any help much appreciated.