ubuntu18下apache2反代配置的样例[教程]

亲测姿势是这样子的,不过怎么也没能成功反代websocket。

<VirtualHost *:80>

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/
        ServerName www.sugueor.com

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        ProxyRequests Off
        <Proxy *>
          Order deny,allow
          Allow from all
        </Proxy>

        ProxyPass / http://www.sugueor.com/
        ProxyPassReverse / http://www.sugueor.com/

        <Location />
          Order allow,deny
          Allow from all
        </Location>
</VirtualHost>

 

请登录后发表评论

    没有回复内容

热门话题