[aklug] Re: Virtual Host on port 8080 not scriptaliasing

From: Arthur Corliss <acorliss@nevaeh-linux.org>
Date: Wed Nov 14 2012 - 15:56:07 AKST

On Wed, 14 Nov 2012, Tim Johnson wrote:

> 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>

FYI: having not seen anything yet, do note that for any new ports you must
have a NameVirtualHost, so you should have:

   NameVirtualHost *:8080
   <VirtualHost *:8080>
   ...

Why apachectl configtest doesn't catch this, I don't know. Might be your
problem.

After restarting apache you can see if it's listening on that port by using
netstat (netstat -lnt | grep :8080). Of course, if another program has that
port open you'll need to use fuser or lsof to figure out what it is.

         --Arthur Corliss
           Live Free or Die
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Wed Nov 14 15:56:16 2012

This archive was generated by hypermail 2.1.8 : Wed Nov 14 2012 - 15:56:16 AKST