DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th December 2015
sidney256 sidney256 is offline
New User
 
Join Date: Aug 2015
Posts: 6
Default squid/apache2 install cachemgr problem

I have a new openBSD apache2/squid server on my dmz. I want to run cachemgr.cgi from a debian box on the internal lan. There's a 3 nic openBSD firewall box between them. When I put webserverURL/cgi-bin/cachemgr.cgi in a brower on debianBox, the cgi script downloads to the Downloads directory instead of running the script on the webserver box.

squid.conf
Code:
acl managerAdmin src debianBoxURL
http_access allow managerAdmin manager
httpd2.conf
Code:
ServerRoot "/var/www"
Listen webServerURL:80
Listen webServerURL:3128
ServerAdmin sidney@debianHostName.domainName
ServerName serverName:80
ScriptAlias /cgi-bin/ "/usr/local/libexec/squid/"
<Directory "/usr/local/libexec/squid/">
    AllowOverride None
    Options ExecCGI
    Require all granted
</Directory>
naturally the _URL's are xxx.xxx.xxx.xxx and the serverName is what hostname -s returns etc.

I am using static addresses with no dhcpd running. Just the "dhcp" in the hostname.extNic. Packet filter code and networking seems to be working fine.

I thought I had the solution, when I found the "Options ExecCGI" line, but maybe one of the other lines, in the dir block, is blocking it. I would also like to just allow debianBoxURL, instead of "Require all granted". I commented out the "AllowOverride None", ...didn't work. Created a new dir for cachemgr.cgi and added an .htaccess file per the book Squid the Definitive Guide, and edited the ScriptAlias line and Directory section to match. Still the same response, it downloads the script instead of running it. No logs no errors.

Merry Christmas from cold Phoenix (seems cold anyway),
Sidney
Reply With Quote
  #2   (View Single Post)  
Old 25th December 2015
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 307
Default

I think you have to tell apache that a .cgi file is a script.

https://httpd.apache.org/docs/2.4/howto/cgi.html

AddHandler is proably what you need.

Tim.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 on startup OpenBsd 5.6 morophla OpenBSD Packages and Ports 2 21st April 2015 03:39 AM
apache2.2+PHP5 edvinus OpenBSD Packages and Ports 1 29th June 2009 08:13 PM
squid cachemgr.cgi output weird chavez243 FreeBSD Ports and Packages 3 25th October 2008 02:58 PM
squid bind problem samile Other BSD and UNIX/UNIX-like 0 11th July 2008 02:13 PM
Apache2 and Iconv disi NetBSD Installation and Upgrading 1 13th May 2008 09:07 PM


All times are GMT. The time now is 07:49 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick