保证httpd.conf中下面模块已开启
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
例如配置域名app.test.com
打开配置文件app.test.com_80.conf
<VirtualHost *:80>
ServerName socketio
ServerAlias app.test.com
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location />
ProxyPass http://127.0.0.1:1337/
ProxyPassReverse http://127.0.0.1:1337/
</Location>
</VirtualHost>