[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:
-
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...
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...
Server Fault (serverfault.com)