[aklug] Virtual Host on port 8080 not scriptaliasing

From: Tim Johnson <tim@akwebsoft.com>
Date: Wed Nov 14 2012 - 15:46:05 AKST

I'm having a problem setting up a second instance of apache on port
8080 to use the same scriptaliasing as the default instance.
Example : where http://localhost/cgi-bin/cgitest.py works
but : http://localhost:8080/cgi-bin/cgitest.py gets a Not Found
error.

In addition the 8080 instance is not writing to logs at /var/log/apache2
and I'm not certain if it is attempting to write to any logs at all.
The logs at /var/log/apache2 are chmod 644 with ownership as
root:wheel. I've tried chmod 666 without any success.
This is on Mac OS X 10.7.

I am going to send Arthur the entire copy of my httpd.conf - OTL -
since I am reluctant to have the entire file posted to a ML that may
be archived and available to the 'world at large'.

Having logging for the 8080 instance disabled (or not found) is a
real disadvantage for me as a Not Found Error might generate the
filepath the browser is actually looking for.

so : here is the code from the virtualhost container:
   <VirtualHost *:8080>
        ErrorLog "/private/var/log/apache2/error_log"
        DocumentRoot "/Users/http"
        ScriptAlias /cgi-bin/ "/Users/http/run/"
        ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/Users/http/run/$1"
        <Directory "/Users/http/run">
            AllowOverride None
            Options None
            Options +ExecCGI
            AddHandler cgi-script .cgi .pl
            Order allow,deny
            Allow from all
        </Directory>
    </VirtualHost>

This container is nested inside of a <IfModule alias_module>
container. Mode/ownership of httpd.conf is 444 root:wheel - I
have not changed it.

I have tested apache each time before restarting it, and also
restart with "Syntax OK".
-------------------------------------------------------------
apache is started on 8080 by starting drupal, which runs its
own instance of apache.
-------------------------------------------------------------
When I first set up this configuration I found that apache was
running __really__ slow. It seems like apache on Mac loads every
darned module made for it. Taking advice from a google session, I
disabled many of the modules. One of the issues that I suspect is
that the disabling of some module might have contributed to this
problem. If no one sees any problem with my config code or Arthur
doesn't turn up a necessary module being disabled, I'll send the DSO
section to the list.

I'm unfamiliar with apache CLI diagnostics, so the proper use of
those could reveal the problem

thanks

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Wed Nov 14 15:46:12 2012

This archive was generated by hypermail 2.1.8 : Wed Nov 14 2012 - 15:46:12 AKST