ciscocsirt / GOSINT

The GOSINT framework is a project used for collecting, processing, and exporting high quality indicators of compromise (IOCs).
BSD 3-Clause "New" or "Revised" License
537 stars 106 forks source link

Web Is Not Working #13

Closed WelshMerc closed 6 years ago

WelshMerc commented 6 years ago

My mongo db stuff works, and when I run the gosint file itself, it has the standard running thing. But, I am having problems with nginx. My nginx file looks like:

# For more information on configuration, see:
#   * Official English Documentation: http://nginx.org/en/docs/
#   * Official Russian Documentation: http://nginx.org/ru/docs/

user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;

# Load dynamic modules. See /usr/share/nginx/README.dynamic.
include /usr/share/nginx/modules/*.conf;

events {
    worker_connections 1024;
}

http {
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile            on;
    tcp_nopush          on;
    tcp_nodelay         on;
    keepalive_timeout   65;
    types_hash_max_size 2048;

    include             /etc/nginx/mime.types;
    default_type        application/octet-stream;

    # Load modular configuration files from the /etc/nginx/conf.d directory.
    # See http://nginx.org/en/docs/ngx_core_module.html#include
    # for more information.
    include /etc/nginx/conf.d/*.conf;

    server {
  listen 80;

  root /home/gosint/projects/src/GOSINT/website;
  index index.php index.html index.htm;
  try_files $uri $uri/ @apachesite;

  server_name someserver.yourcompany.com;

  gzip on;
  gzip_proxied any;
  gzip_types
      text/css
      text/javascript
      text/xml
      text/plain
      application/javascript
      application/x-javascript
      application/json;

  #location / {
  #    try_files $uri $uri/ =404;
  #}

  error_page 404 /404.html;
  error_page 500 502 503 504 /50x.html;
  location = /50x.html {
      root /usr/share/nginx/html;
  }

  location @apachesite {

      proxy_pass http://localhost:8000;
  }

  location ~ \.php$ {
      try_files $uri =404;
      fastcgi_split_path_info ^(.+\.php)(/.+)$;

      # PHP 7
      fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;

      # PHP 5
      # fastcgi_pass unix:/run/php5-fpm.sock;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      include fastcgi_params;
  }
}

# Settings for a TLS enabled server.
#
#    server {
#        listen       443 ssl http2 default_server;
#        listen       [::]:443 ssl http2 default_server;
#        server_name  _;
#        root         /usr/share/nginx/html;
#
#        ssl_certificate "/etc/pki/nginx/server.crt";
#        ssl_certificate_key "/etc/pki/nginx/private/server.key";
#        ssl_session_cache shared:SSL:1m;
#        ssl_session_timeout  10m;
#        ssl_ciphers HIGH:!aNULL:!MD5;
#        ssl_prefer_server_ciphers on;
#
#        # Load configuration files for the default server block.
#        include /etc/nginx/default.d/*.conf;
#
#        location / {
#        }
#
#        error_page 404 /404.html;
#            location = /40x.html {
#        }
#
#        error_page 500 502 503 504 /50x.html;
#            location = /50x.html {
#        }
#    }

}

What do I need to do to get this to work properly?

WelshMerc commented 6 years ago

Wow, that did not turn out right.

iamtmehdi commented 6 years ago

@WelshMerc I have fixed the formatting of the original post.

To start to debug the issue:

Thanks.

blueteam1 commented 6 years ago

Hello,

Unfortunately we do not have the resources at this time to provide personalized support on getting the framework running which is why we tried our best to document it all out. If you feel there is a bug in the software or the documentation, please provide a detailed explanation and ideally submit a fix if you find one.

Thanks