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

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

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

Scheduled Pinned Locked Moved Technical Support
2 Posts 1 Posters 2.2k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    priapo
    wrote on last edited by priapo
    #1

    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

    1 Reply Last reply
    0
  • P Offline
    P Offline
    priapo
    wrote on last edited by priapo
    #2

    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:

    Apache ProxyPassReverse escaping special characters

    I have this very simple reverse proxy rule in Apache 2.2.19: ProxyPass /test http://other.local.machine/test ProxyPassReverse /test http://other.local.machine/test The problem is...

    favicon

    Server Fault (serverfault.com)

    can't get mod_proxy to correctly forward encoded slash (/) characters (%2f)

    I have a virtual host set up to redirect ntung-gitblit.localhost --> myserver:1279. However, it's not working with forward encoded slashes (%2f). The URL I'm trying to access is, http://ntung-gitb...

    favicon

    Server Fault (serverfault.com)

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

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