Python 无法转发用户提交的查询参数

Python 无法转发用户提交的查询参数,python,node.js,apache,http,webserver,Python,Node.js,Apache,Http,Webserver,我想转发在浏览器中输入的请求,如: example.com/?wid=23&lang=en 到运行在不同端口上的服务器,如: http://localhost:3001/?wid=23&lang=en 我怎么能这样做 我在apache中添加了一个VirtualHost,如下所示: <VirtualHost *:80> #ServerName www.example.com ServerAdmin webmaster@ex

我想转发在浏览器中输入的请求,如:

example.com/?wid=23&lang=en
到运行在不同端口上的服务器,如:

http://localhost:3001/?wid=23&lang=en
我怎么能这样做

我在apache中添加了一个VirtualHost,如下所示:

    <VirtualHost *:80>

        #ServerName www.example.com

        ServerAdmin webmaster@example.com
        ServerName example.com
        ServerAlias example.com
        ProxyPass / http://localhost:3001/
        ProxyPassReverse / http://localhost:3001/


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

#服务器名www.example.com
服务器管理员webmaster@example.com
ServerName example.com
ServerAlias example.com
ProxyPass/http://localhost:3001/
ProxyPassReverse/http://localhost:3001/
ErrorLog${APACHE_LOG_DIR}/error.LOG
CustomLog${APACHE\u LOG\u DIR}/access.LOG组合

但是我不知道如何将查询参数传递给在不同端口上运行的Nodejs应用程序。

在VirtualHost配置中,您是否应该将请求重定向到端口
3000
,而不是
3001
?@Zeeshan Typo。。