[SOLVED] Some pages on Admin CPanel not working on Apache Proxy



  • I installed the last version of nodebb today. I can post normally, but when i click the links on the ACP menu pages don't show up. When direct in the address pages show normally ('categories' don't). I am using apache, https

    Here is my vhost config

    <VirtualHost *:80>
    
            ServerName thewizards.club
            Redirect permanent / https://thewizards.club
    
    </VirtualHost>
    
    <VirtualHost *:443>
    
            ServerName thewizards.club
    
            SSLEngine on
            SSLProtocol all -SSLv2
            SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
    
            SSLCertificateFile /etc/apache2/ssl/thewizards-club/cert.crt
            SSLCertificateKeyFile /etc/apache2/ssl/server.key
            SSLCertificateChainFile /etc/apache2/ssl/thewizards-club/1_root_bundle.crt
    
    #       ServerAdmin webmaster@localhost
    
    
            <Proxy *>
                    Require all granted
            </Proxy>
    
            ProxyRequests off
            ProxyVia on
    
            RequestHeader set X-Forwarded-Proto "https"
    
            RewriteEngine On
            RewriteCond %{REQUEST_URI}  ^/socket.io            [NC]
            RewriteCond %{QUERY_STRING} transport=websocket    [NC]
            RewriteRule /(.*)           ws://10.0.3.10:4567/$1 [P,L]
    
    #       ProxyPass        /socket.io http://10.0.3.10:4567/socket.io
    #       ProxyPassReverse /socket.io http://10.0.3.10:4567/socket.io
    
            <Location />
                    ProxyPass http://10.0.3.10:4567/ retry=0 timeout=5
                    ProxyPassReverse http://10.0.3.10:4567/
            </Location>
    
            ErrorLog /home/monitor/logs/apache/forum-error.log
            CustomLog /home/monitor/logs/apache/forum-access.log combined
    
    </VirtualHost>
    
    

    Chromium console:

    0_1483047175481_Screenshot from 2016-12-29 19-27-31.png



  • It was solved; here is my working Apache's nodebb.conf:

    <VirtualHost *:80>
    
            ServerName thewizards.club
            Redirect permanent / https://thewizards.club
    
    </VirtualHost>
    
    <VirtualHost *:443>
    
            ServerName thewizards.club
    
            SSLEngine on
            SSLProtocol all -SSLv2
            SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
    
            SSLCertificateFile /etc/apache2/ssl/thewizards-club/2_thewizards.club.crt
            SSLCertificateKeyFile /etc/apache2/ssl/server.key.insecure
            SSLCertificateChainFile /etc/apache2/ssl/thewizards-club/1_root_bundle.crt
    
    #       ServerAdmin webmaster@localhost
    
    
            <Proxy *>
                    Require all granted
            </Proxy>
    
            ProxyRequests off
            #ProxyVia on
            AllowEncodedSlashes On
    
    
            #ProxyPreserveHost on
            RequestHeader set X-Forwarded-Proto "https"
    
            RewriteEngine On
            RewriteCond %{REQUEST_URI}  ^/socket.io            [NC]
            RewriteCond %{QUERY_STRING} transport=websocket    [NC]
            RewriteRule /(.*)           ws://127.0.0.1:4567/$1 [P,NE,L]
            # NE flag == noescape
    
            ProxyPass        /socket.io http://127.0.0.1:4567/socket.io nocanon retry=0
            ProxyPassReverse /socket.io http://127.0.0.1:4567/socket.io
    
            ProxyPass / http://127.0.0.1:4567/ nocanon retry=0
            ProxyPassReverse / http://127.0.0.1:4567/
    
            ErrorLog /home/web/logs/apache/forum-error.log
            CustomLog /home/web/logs/apache/forum-access.log combined
    
    </VirtualHost>
    

    It was fixed it based on these resources:


Log in to reply
 

Looks like your connection to NodeBB was lost, please wait while we try to reconnect.