Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 22:25:28

Author Topic: Unable to run cgi scripts like Lstat  (Read 10736 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Unable to run cgi scripts like Lstat
« Reply #15 on: 2016-06-14, 01:07:59 »
Should I create a special config for lstat ?
Yes. Try explore cgi.conf and stats_awstats.conf.

I only need such file to be converted to nginx format:

Quote
#Include for LinuxStat (http://lstat.sf.net)
AddHandler cgi-script .cgi
Alias "/lstat/" "/usr/local/lstat/www/"
<Directory "/usr/local/lstat/www/">
AllowOverride None
Options +ExecCGI
Require all granted
Allow from all

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Unable to run cgi scripts like Lstat
« Reply #16 on: 2016-07-14, 00:46:57 »
It seems it works on port 30080 (Apache) but when passed via nginxproxy it shows 404 error :(

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to run cgi scripts like Lstat
« Reply #17 on: 2016-07-14, 06:12:01 »
Awstats running well if protected directery set to disable. So, investigate stats_awstats.conf inside /opt/configs/nginx/conf/globals.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Unable to run cgi scripts like Lstat
« Reply #18 on: 2016-07-16, 00:00:24 »
Awstats running well if protected directery set to disable. So, investigate stats_awstats.conf inside /opt/configs/nginx/conf/globals.

AWStats works well. I'm talking about LinuxStat (lstat) which needs to be passed as well (it's our server monitoring system).

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to run cgi scripts like Lstat
« Reply #19 on: 2016-07-16, 07:19:01 »
Use custom.stats_awstats.conf as your lstart config.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Unable to run cgi scripts like Lstat
« Reply #20 on: 2016-07-16, 20:00:14 »
Use custom.stats_awstats.conf as your lstart config.

This didn't seem to work:

Quote
  location /lstat/ {
                alias /usr/local/lstat/www/;

                location ~ /www\.cgi$ {
                        gzip off;
                        try_files $uri =404;

                        fastcgi_pass unix:/tmp/fcgiwrap.sock;

                        include /etc/nginx/fastcgi_params;

                        fastcgi_param SCRIPT_FILENAME /usr/local/lstat/www/lstat.cgi;
                        fastcgi_ignore_client_abort off;
                }

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to run cgi scripts like Lstat
« Reply #21 on: 2016-07-17, 05:14:03 »
Look like something trouble for nginx if access 'alias' address to execute cgi. It's still unresolve at this moment.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.078 seconds with 19 queries.

web stats analysis