A
A
Alexander2019-10-26 23:38:40
Apache HTTP Server
Alexander, 2019-10-26 23:38:40

Why does the Forbidden You don't have permission to access this resource error occur?

Here is a config:

<VirtualHost *:80>
  RewriteEngine On
  
  RewriteCond %{REQUEST_URI}   ^/api   [NC]
  RewriteCond %{REQUEST_FILENAME}   !-f
  RewriteRule /api/(.*)   http://l27.0.0.1:4000/$1   [P,L]
  
  RewriteCond %{HTTP:Upgrade}   =websocket   [NC]
  RewriteRule /(.*)   ws://l27.0.0.1:3000/$1   [P,L]
  RewriteCond %{HTTP:Upgrade}   !=websocket   [NC]
  RewriteRule /(.*)   http://l27.0.0.1:3000/$1   [P,L]
  
  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2019-10-27
@LordGuard

Check if mod_proxy_wstunnel is loaded.
There, in three lines, instead of a number, there is the Latin letter "l".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question