• Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Default
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Quartz
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Slate
  • Solar
  • Superhero
  • Vapor
Collapse

Community

A

Abhinov Singh 0

@Abhinov Singh 0
About
Posts
33
Topics
15
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

    Nodejs version
  • A Abhinov Singh 0

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


  • proxy problem
  • A Abhinov Singh 0
    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>


  • RE: on browsing getting directories list
  • A Abhinov Singh 0

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


  • RE: on browsing getting directories list
  • A Abhinov Singh 0

    @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


  • RE: on browsing getting directories list
  • A Abhinov Singh 0

    @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


  • RE: on browsing getting directories list
  • A Abhinov Singh 0

    @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


  • RE: on browsing getting directories list
  • A Abhinov Singh 0

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


  • RE: on browsing getting directories list
  • A Abhinov Singh 0

    @PitaJ

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


  • RE: on browsing getting directories list
  • A Abhinov Singh 0

    @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 ?


  • RE: on browsing getting directories list
  • A Abhinov Singh 0

    @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


  • RE: on browsing getting directories list
  • A Abhinov Singh 0

    @PitaJ yes offcourse


  • RE: on browsing getting directories list
  • A Abhinov Singh 0

    @PitaJ

    1. What should i do ?
    2. Where should I put my files then

    I am using centos 7 os ,
    and Apache : server


  • on browsing getting directories list
  • A Abhinov Singh 0

    Can you please tell why ?

    wp11.PNG


  • mongod problem
  • A Abhinov Singh 0

    How to solve this problem

    wp9.PNG


  • without sharp install
  • A Abhinov Singh 0
    1. Can i install nodebb without using sharp
    2. My present system is broken as i am not able to install sharp because i am using centos 6.10
      Any solution ?

  • RE: ./nodebb status
  • A Abhinov Singh 0

    @oplik0
    IMG_20191216_154249.jpg

    When I run circled command , above error occurred

    Now this error is coming
    configure: error: cannot run C compiled programs.
    If you meant to cross compile,
    use --host.

    See config.log for more details


  • RE: ./nodebb status
  • A Abhinov Singh 0

    @PitaJ

    Now this error is coming

    configure: error: cannot run C compiled programs.
    If you meant to cross compile,
    use --host. See config.log for more details


  • RE: ./nodebb status
  • A Abhinov Singh 0

    @oplik0
    I am running nodebb on centos 6.10
    and hostgator is not giving option to migrate to centos 7

    what should i do ?
    Because I am not able to install libvips without which i cannot install sharp
    due to which after upgrading nodebb to latest version my nodebb is not getting started


  • RE: ./nodebb status
  • A Abhinov Singh 0

    How can I solve this problem ?
    IMG_20191216_045722.jpg


  • RE: ./nodebb status
  • A Abhinov Singh 0

    @FrankM
    Actually ,

    1. This output is coming when i am doing ./nodebb log

    2. After upgrading to latest nodebb version , when i am doing ./nodebb start
      It's not getting started

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
  • Login

  • Don't have an account? Register

  • Login or register to search.