[rt-users] httpd.conf configuration problem

Easyrider Inquiry Inquiry at Easyrider.com
Mon Oct 12 00:25:48 EDT 2009


James Moseley wrote:
> On Sun, Oct 11, 2009 at 10:09 PM, Easyrider Inquiry
> <Inquiry at easyrider.com <mailto:Inquiry at easyrider.com>> wrote:
>
>
>     Quantifier follows nothing in regex; marked by <-- HERE in m/+ <--
>     HERE REST/ at /opt/rt3/etc/RT_SiteConfig.pm line 393.
>
>
> The above line in the error log tells you exactly where and what the
> problem is.  The problem is with a regex expression on line 393. 
>
> Sure enough, look at this below:
>  
>
>     [root at security webalizer-2.21-02]#
>
>     /opt/rt3/etc/RT_SiteConfig.pm:
>
>     #Set($WebNoAuthRegex, qr!^(?:/+NoAuth/|
>                                 /+REST/\d+\.\d+/NoAuth/)!x );
>
> The problem is that the second line above (the one with REST in it)
> was supposed to be part of the line above it, but more than likely
> when you pasted it in, your text editor didn't wrap the line and
> instead put in a line break.  You need to comment out that second line
> as well - that's what is causing the error.
>
> As far as your Apache configuration, you have RT setup to use
> mod_fastcgi.  In those instructions, you must also have the following
> somewhere in your config:
>
> FastCgiIpcDir /tmp
>
> FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120
>
> These are outside the virtual host stanza and since you claim RT works
> for you at the root level, your Apache configuration obviously has
> those necessary lines and is otherwise setup correctly.  All you need
> now to get http://backup.easyrider.com/helpdesk/ working is to use the
> following Alias and ScriptAlias lines:
>
> Alias /helpdesk/NoAuth/images /opt/rt3/share/html/NoAuth/images
> ScriptAlias /helpdesk /opt/rt3/bin/mason_handler.fcgi/
>
> -- 
> James Moseley
Thanks James and you are correct.  After editing these same two files
for many hundreds of times I am getting sloppy/tired.  I missed the pipe
symbol that caused the following incomplete line to be read in.

I am now at essentially the same problem I had a week ago where someone
was able to help me get /helpdesk to bring up the login page but as soon
as you hit "login" the browser goes directly to the site web page at
/var/www/html.  I believe you can verify this from the Internet as well.

I did a grep for FastCgiIpcDir /tmp and FastCgiServer
/opt/rt3/bin/mason_handler.fcgi -idle-timeout 120 in httpd.conf and
found nothing but as you say, it seems likely that they are there
somewhere since the root URL RT works just fine.  The difference between
the configuration that works and the configuration that almost works is
literally less than a half dozen lines of code.

I did spend several days trying various combinations of entries in the
examples listed in
http://wiki.bestpractical.com/view/FedoraCore4InstallGuide to get around
my current problem.  Each change either had no effect or made things
worse.  The fellow who was helping me last week eventually gave up which
is probably what I would do too if quitting was an option.

This shouldn't matter, but I'm running a RHEL4 server and Apache 2.0.53.

Nothing interesting in httpd error_log

You can see the failure when a POST /index.html is issued and a get to
the _graphics directory in /var/www/html

http access_log:

192.168.1.1 - - [11/Oct/2009:21:18:58 -0700] "GET
/helpdesk/NoAuth/js/scriptaculous/effect
s.js HTTP/1.1" 200 38745 "http://backup.easyrider.com/helpdesk"
"Mozilla/5.0 (Windows; U;
Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET
CLR 3.5.30729)"
192.168.1.1 - - [11/Oct/2009:21:18:58 -0700] "GET
/helpdesk/NoAuth/js/scriptaculous/contro
ls.js HTTP/1.1" 200 35048 "http://backup.easyrider.com/helpdesk"
"Mozilla/5.0 (Windows; U;
 Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET
CLR 3.5.30729)"
192.168.1.1 - - [11/Oct/2009:21:19:00 -0700] "POST /index.html HTTP/1.1"
200 19739 "http:/
/backup.easyrider.com/helpdesk" "Mozilla/5.0 (Windows; U; Windows NT
5.1; en-US; rv:1.9.1.
3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)"
192.168.1.1 - - [11/Oct/2009:21:19:01 -0700] "GET /_graphics/sky.jpg
HTTP/1.1" 200 3862 "h
ttp://backup.easyrider.com/index.html" "Mozilla/5.0 (Windows; U; Windows
NT 5.1; en-US; rv
:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)"

# ---- Latest advice START ---------

Set($WebPath , "/helpdesk");
Set($WebBaseURL , "http://backup.easyrider.com");
Set($WebImagesURL , $WebPath . "/NoAuth/images/");

# ---- Latest advice END -----------

# ----- START ---------

NameVirtualHost *:80
      <VirtualHost *:80>
       ServerName backup.easyrider.com
       AddDefaultCharset UTF-8
       AddHandler fastcgi-script .fcgi
       Alias /helpdesk/NoAuth/images /opt/rt3/share/html/NoAuth/images
       ScriptAlias /helpdesk /opt/rt3/bin/mason_handler.fcgi/
     </VirtualHost>

# ---- END -----------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20091011/c485c3b0/attachment.htm>


More information about the rt-users mailing list