Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. Abhinov Singh 0
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 15
    • Posts 33
    • Best 0
    • Groups 0

    Abhinov Singh 0

    @Abhinov Singh 0

    0
    Reputation
    49
    Profile views
    33
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Abhinov Singh 0 Follow

    Latest posts made by Abhinov Singh 0

    • Nodejs version

      Do nodebb support latest version of nodejs version v12.14.0 ?

      posted in Technical Support
      A
      Abhinov Singh 0
    • proxy problem
      1. I am not able to remove 4567 from http://subdomain:4567
        How to do it ?
        Steps I am following
        (a) Reading from here https://docs.nodebb.org/configuring/proxies/apache/
        (b) Making subdomain.conf , keeping it inside /etc/apache2/conf.d/includes
        and attaching this line Include /etc/apache2/conf.d/includes/subdomain.conf into httpd.conf
        (c) Changing URL of config.json inside NodeBB folder to http://subdomain.conf

      Code which I am using in subdomain.conf is as follows :
      <VirtualHost *:80>
      ServerName www.sub-domain.com
      RequestHeader set X-Forwarded-Proto "http"

      ProxyRequests off
      <Proxy *>
          Order deny,allow
          Allow from all
      </Proxy>
      
      RewriteEngine On
      RewriteCond %{REQUEST_URI}  ^/socket.io            [NC]
      RewriteCond %{QUERY_STRING} transport=websocket    [NC]
      RewriteRule /(.*)           ws://127.0.0.1:4567/$1 [P,L]
      
      ProxyPass / http://127.0.0.1:4567/
      ProxyPassReverse / http://127.0.0.1:4567/
      

      </VirtualHost>

      posted in General Discussion
      A
      Abhinov Singh 0
    • RE: on browsing getting directories list

      @PitaJ
      Do i need to do mongorestore before installing nodebb or can we do it after installing nodebb also ?

      posted in General Discussion
      A
      Abhinov Singh 0
    • RE: on browsing getting directories list

      @PitaJ
      Yes sorry , you are right,
      mistyped it by mistake

      Now the status is my new nodebb with latest version is running without my data
      How can i use mongorestore , so i can populate my new nodebb version with backup data ( most important )

      Please guide me

      posted in General Discussion
      A
      Abhinov Singh 0
    • RE: on browsing getting directories list

      @PitaJ
      Thanks a lot
      Now everything is working fine

      Previously I was running nodebb version v.10.1 for last 1 year but when I try upgrading it to latest version
      (before which i did mongodump first which results in making dump folder with two subfolders named admin and nodebb),

      it kept me asking to install sharp first, which cannot be installed on centos 6 . So I changed my server to centos 7 .

      Now the status is my new nodebb with latest version is running without my data
      How can i use mongodump , so i can populate my new nodebb version with backup data ( most important )

      Please guide me

      posted in General Discussion
      A
      Abhinov Singh 0
    • RE: on browsing getting directories list

      @PitaJ

      I did a fresh install of nodebb using nodebb documentation available at https://docs.nodebb.org/installing/os/centos/

      Along the process after running ./nodebb setup

      1. I was asked to make administrator username , email and password .
      2. Mongo database and password
        So i fill all the details after which i run ./nodebb start

      Then i see nodebb page .
      When i click login and enter my administrator details
      it reroute to same login page and admin portal is not getting opened

      Following are the results :
      1.After browsing http:/subdomain.com:4567
      IMG_20191224_070138.jpg

      2.After doing admin login
      IMG_20191224_070521.jpg

      3.Now clicking admin
      IMG_20191224_070614.jpg

      4.After clicking admin , why it is rerouting to login page and why it's not opening admin dashboard
      IMG_20191224_070906.jpg

      posted in General Discussion
      A
      Abhinov Singh 0
    • RE: on browsing getting directories list

      @PitaJ
      I have already paid for the following services :
      1. Os : centos 7
      2. Apache2 (EasyApache4 software in hostgator)

      posted in General Discussion
      A
      Abhinov Singh 0
    • RE: on browsing getting directories list

      @PitaJ

      I am able to open nodebb on : http://sample.sub-domain.com:4567
      but not https://sample.sub-domain.com

      posted in General Discussion
      A
      Abhinov Singh 0
    • RE: on browsing getting directories list

      @PitaJ
      I have written this code in separate subdomain.conf
      location where i saved this file : /etc/apache2/conf.d/includes

      <VirtualHost *:80>
          ServerName www.sub-domain.com 
          ServerAlias sub-domain.com
      
          # Rewrite any http traffic to the main url https site
          <IfModule mod_rewrite.c>
              RewriteEngine On
              RewriteRule ^[^\/]*\/(.*) https://www.sub-domain.com/$1 [R=301,L]
          </IfModule>
      </VirtualHost>
      
      <VirtualHost *:443>
          Protocols h2 http/1.1
          ServerName www.sub-domain.com
      
          SSLEngine on
          SSLCertificateFile /path/to/cert.pem
          SSLCertificateKeyFile /path/to/privkey.pem
          SSLCertificateChainFile /path/to/chain.pem
      
          # Basic security headers
          Header always set X-Content-Type-Options "nosniff"
          Header always set X-Xss-Protection "1; mode=block"
      
          # NodeBB header
          RequestHeader set X-Forwarded-Proto "https"
      
          # Static file cache
          <FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css)$">
              <IfModule mod_expires.c>
                  ExpiresActive on
                  ExpiresDefault "access plus 14 days"
                  Header set Cache-Control "public"
              </IfModule>
          </FilesMatch>
      
          ProxyRequests off
          <Proxy *>
              Order deny,allow
              Allow from all
          </Proxy>
      
          # Custom Error Document when NodeBB is offline
          ProxyPass /error-documents !
          ErrorDocument 503 /error-documents/503.html
          Alias /error-documents /path/to/nodebb/public
      
          # Websocket passthrough
          RewriteEngine On
          RewriteCond %{REQUEST_URI}  ^/socket.io            [NC]
          RewriteCond %{QUERY_STRING} transport=websocket    [NC]
          RewriteRule /(.*)           ws://localhost:4567/$1 [P,L]
      
          ProxyPass / http://localhost:4567/
          ProxyPassReverse / http://localhost:4567/
      
          # Log stuff
          #ErrorLog ${APACHE_LOG_DIR}/www-example-error.log
          #CustomLog ${APACHE_LOG_DIR}/www-example-access.log combined
      </VirtualHost>
      

      But still I am not able to do it
      what mistake i am doing ?

      posted in General Discussion
      A
      Abhinov Singh 0
    • RE: on browsing getting directories list

      @PitaJ
      When I am doing curl http://localhost:4567/ on putty
      I am getting nodebb html page

      but when i am running nodebb through my subdomain , I am getting a list of directories of nodebb .

      For doing configuration of reverse proxy : I have followed this link
      https://docs.nodebb.org/configuring/proxies/apache/

      Any advice , stuck from last 24 hours .
      Not able to find solution

      posted in General Discussion
      A
      Abhinov Singh 0