【发布时间】:2018-10-06 04:53:08
【问题描述】:
我读过一篇文章说在 Apache 配置中执行此操作:
<VirtualHost *:80>
ServerName www.domain2.com
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/socket.io [NC]
RewriteCond %{QUERY_STRING} transport=websocket [NC]
RewriteRule /(.*) ws://localhost:3001/$1 [P,L]
ProxyPass / http://localhost:3001/
ProxyPassReverse / http://localhost:3001/
</VirtualHost>
问题是我对这些东西不熟悉(服务器配置)。你能告诉我在哪里可以找到 apache 配置以及如何将这些行输入到其中。我有运行 apache 服务器的 linux vps cpanel + centos6。因为当我在 whm cpanel 中转到 apache 配置时,我看到了全局配置,
DirectoryIndex 优先级,等等。 .
【问题讨论】: