[rt-users] Apache config woes

Bart bart at pleh.info
Thu Nov 3 10:46:10 EDT 2011


I believe RT installs itself in /opt/rt4/ ?

This is houw my Apache config looks atm:

<VirtualHost *:80>
        ErrorLog /opt/rt4/var/log/apache2.error
        TransferLog /opt/rt4/var/log/apache2.access

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>


<VirtualHost *:443>
ErrorLog /opt/rt4/var/log/apache2.error
TransferLog /opt/rt4/var/log/apache2.access
# LogLevel debug

AddDefaultCharset UTF-8

DocumentRoot "/opt/rt4/share/html"
<Location />
Order allow,deny
Allow from all

SetHandler perl-script
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /opt/rt4/sbin/rt-server
</Location>
<Perl>
use Plack::Handler::Apache2;
Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
</Perl>

SSLEngine on
SSLCertificateFile /etc/ssl/certs/***.pem
</VirtualHost>


We're hosting it via SSL, the port 80 part makes sure everything is
redirected to 443 (while keeping the URL in tact).


-- Bart


2011/11/3 Jim T <jimmers.inbox at gmail.com>

> Hello,
>
> I am trying to serve rt from "/rt". I have read the web_deployment.pod and
> I thought I'd configured apache correctly but I still cant get rt to start.
> The apache error log says "File does not exist: /var/www/rt".
>
> Here's my apache config:
>
> <VirtualHost *:80>
>         ServerAdmin webmaster at localhost
>
>         DocumentRoot /var/www
>         <Directory />
>                 Options FollowSymLinks
>                 AllowOverride None
>         </Directory>
>         <Directory /var/www/>
>                 Options Indexes FollowSymLinks MultiViews
>                 AllowOverride None
>                 Order allow,deny
>                 allow from all
>         </Directory>
>
>         ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
>         <Directory "/usr/lib/cgi-bin">
>                 AllowOverride None
>                 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
>                 Order allow,deny
>                 Allow from all
>         </Directory>
>
>         ErrorLog ${APACHE_LOG_DIR}/error.log
>
>         # Possible values include: debug, info, notice, warn, error, crit,
>         # alert, emerg.
>         LogLevel warn
>
>         CustomLog ${APACHE_LOG_DIR}/access.log combined
>
>     Alias /doc/ "/usr/share/doc/"
>     <Directory "/usr/share/doc/">
>         Options Indexes MultiViews FollowSymLinks
>         AllowOverride None
>         Order deny,allow
>         Deny from all
>         Allow from 127.0.0.0/255.0.0.0 ::1/128
>     </Directory>
>     </VirtualHost>
> <VirtualHost *:80>
>         ### Optional apache logs for RT
>         # Ensure that your log rotation scripts know about these files
>         # ErrorLog /opt/rt4/var/log/apache2.error
>         #TransferLog /opt/rt4/var/log/apache2.access
>         # LogLevel debug
>
>         AddDefaultCharset UTF-8
>
>         Alias /rt/NoAuth/images/ /opt/rt4/share/html/NoAuth/images/
>         ScriptAlias /rt/ /opt/rt4/sbin/rt-server.fcgi/
>
>         DocumentRoot /var/www
>         <Location /rt>
>             Order allow,deny
>             Allow from all
>
>             Options +ExecCGI
>             AddHandler fcgid-script fcgi
>         </Location>
>     </VirtualHost>
>
>
>
> Any help would be really appreciated.
>
> Regards, Jim
>
> --------
> RT Training Sessions (http://bestpractical.com/services/training.html)
> *  Barcelona, Spain — November 28 & 29, 2011
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20111103/8bf60bc7/attachment.htm>


More information about the rt-users mailing list