[freeside] Clicking links comes up with Source Code

Scott Miller srmiller at interbel.net
Wed Dec 24 10:50:37 PST 2003


----- Original Message ----- 
From: "Sven Willenberger" <sven at dmv.com>
To: <ivan-freeside at sisd.com>
Sent: Wednesday, December 24, 2003 10:49 AM
Subject: Re: [freeside] Clicking links comes up with Source Code


> On Wed, 2003-12-24 at 12:06, Scott Miller wrote:
> > Thanks,
> >  
> >    I've added the command as such:
> >  
> > ScriptAlias /cgi-bin/ /usr/local/apache/htdocs/freeside-asp
> > ScriptAlias /cgi-bin/ /var/www/freeside
> > #ScriptAlias /cgi-bin/ /var/www/freeside/cgi-bin
> > Options +Includes +ExecCGI                            <-------------
> > CustomLog /var/www/html/logs/access_log combined
> > ErrorLog /var/www/html/logs/error_log
> > TransferLog /var/www/html/logs/access_log
> >  
> > Restarted apache - it came up fine this time.
> >  
> > I still, however, am not able to execute cgi-scripts from outside the
> > cgi-bin area.
> >  
> > More info on this, I snooped around looking to make sure everything
> > was in it's appropriate place, and found:
> >  
> > /usr/local/apache does not exist, however /usr/local/apache2 does, but
> > there is no htdocs/freeside-asp folder.  I created the freeside-asp
> > folder, and copied the aspdocs folder to it: 
> > cp aspdocs /usr/local/apache2/htdocs/freeside-asp
> >  
> > cp aspdocs /usr/local/apache2/htdocs/freeside-asp
> > cp: omitting directory `aspdocs' 
> >  
> > - so now the folder is
> > /usr/local/apache2/htdocs/freeside-asp/aspdocs/*     (- are all the
> > aspdocs files supposed to be in the freeside-asp folder, and not
> > create the aspdocs folder? )
> >  
> > I then edited my httpd.conf to read the following:
> >  
> > <VirtualHost 63.166.12.251>
> > DocumentRoot /var/www
> > ServerName freeside.domain.com
> > ScriptAlias /cgi-bin/ /usr/local/apache2/htdocs/freeside-asp
> > ScriptAlias /cgi-bin/ /var/www/freeside
> > #ScriptAlias /cgi-bin/ /var/www/freeside/cgi-bin
> > Options +Includes +ExecCGI
> > CustomLog /var/www/html/logs/access_log combined
> > ErrorLog /var/www/html/logs/error_log
> > TransferLog /var/www/html/logs/access_log
> >  
> > <Directory /usr/local/apache2/htdocs/freeside-asp>
> > <Files ~ (\.cgi)>
> > AddHandler perl-script .cgi
> > PerlHandler Apache::ASP
> > </Files>
> > Options +Includes +ExecCGI
> > <Perl>
> > $MLDBM::RemoveTaint = 1;
> > </Perl>
> > PerlSetVar Global /usr/local/etc/freeside/asp-global/
> > PerlSetVar Debug 2
> > </Directory>
> >  
> > <Directory /usr/local/apache2/htdocs/freeside-asp>
> > AuthName Freeside
> > AuthType Basic
> > Options +Includes +ExecCGI
> > AuthUserFile /usr/local/etc/freeside/htpasswd
> > require valid-user
> > </Directory>
> > </VirtualHost>
> >  
> > service httpd restart comes back as OK
> >  
> > But still - can not execute the cgi-scripts, each link clicked comes
> > back with the source code.  Even restarted my windows computer to see
> > if that would make a difference - didn't.
> >  
> aspdocs should not exist as a subdirectory under freeside-asp
> I would "rm -rf /usr/local/apache2/htdocs/freeside-asp"
> Then run the cp command again and see if that helps. Also, in your
> config above in the VirtualHost directive, you have set the ServerName
> to be freeside.domain.com; if that was done for example purposes fine,
> but if it is really like that, then that whole section is ignored if you
> browse to freeside.interbelhost.com
> 
> P.S. it would really help if you would stop top-posting as this thread
> is pretty much chopped to shreds now and it makes it very tough for
> others to try and follow what is going on here.
> 
> Sven

Just out of curiosity, do I need to enable Server Side Includes (SSI) ?

Scott



More information about the freeside-users mailing list