[rt-users] Trouble/Error with Web deployment httpd/apache/mod_fcgid

dwdixon dwdixon at umich.edu
Mon Nov 30 15:02:21 EST 2015


Hi Bill,

Thanks for getting back with me so quickly- I was sort of on the right track
based on what you've indicated but long story short I think you're correct
and this info has helped me further...When I initially did a "httpd -S" I
got:

******************************************************************
# httpd -S
httpd: Could not reliably determine the server's fully qualified domain
name, using 127.0.0.1 for ServerName
VirtualHost configuration:
192.168.1.97:80      rt-ir-sandbox.snip.snip.snip.edu
(/etc/httpd/conf.d/rt.conf:1)
Syntax OK
******************************************************************

So I then played around with adding the ServerName directive in my rt.conf:

******************************************************************
<VirtualHost rt-ir-sandbox.snip.snip.snip.edu: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
        ServerName rt-ir-sandbox.snip.snip.snip.edu
        AddDefaultCharset UTF-8

        ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/

        DocumentRoot "/opt/rt4/share/html"
        <Location />

            Require all granted

            Options +ExecCGI
            AddHandler fcgid-script fcgi
        </Location>
</VirtualHost>
******************************************************************

Still got the same complaining output as above from "httpd -S"  after adding
ServerName to rt.conf.... so then I added my
rt-ir-sandbox.snip.snip.snip.edu as the ServerName in
/etc/httpd/conf/httpd.conf and when I ran "httpd -S" it stopped
complaining(shown below)...however, this did not change anything with how
apache is serving up content...it's still trying to serve up contents from
/var/www/html/ as best as I can tell....so I'm still baffled.  As far as I
know DNS should be setup sufficiently, my hostname is configured as
"rt-ir-sandbox" on the server and DNS is setup with a static IP address that
is mapped to rt-ir-sandbox.snip.snip.snip.edu and the DNS name seems to be
resolving to the proper IP address.

******************************************************************
httpd -S
VirtualHost configuration:
192.168.1.97:80      rt-ir-sandbox.snip.snip.snip.edu
(/etc/httpd/conf.d/rt.conf:1)
Syntax OK
******************************************************************

I'm not certain what seems to be the issue at this point...nor why when I
add the ServerName directive to my rt.conf inside <VirtualHost> it doesn't
recognize it, and only does when I add it to /etc/httpd/conf/httpd.conf. 
You also mentioned I could me missing an Include directive in httpd.conf,
any idea what that might be?  This looks to be the Include directive that's
located in httpd.conf by default that tells apache to pick up the .conf
files in conf.d but I'm pretty baffled at this point why apache still seems
to be trying to serve up things in /var/www/html/ when rt.conf tells it
otherwise...

******************************************************************
# From /etc/httpd/conf/httpd.conf

# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf
******************************************************************

Thanks much again in advance!

-Drew




--
View this message in context: http://requesttracker.8502.n7.nabble.com/Trouble-Error-with-Web-deployment-CentOS-httpd-mod-fcgid-tp60979p61031.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.



More information about the rt-users mailing list