|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
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 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> 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 |
|
|||
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. |
|
|
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 |