sudo a2enmod proxy
sudo a2enmod proxy_http
<VirtualHost *:443>
ServerName mywebapp.com
:
ProxyPass /http-bind/ http://localhost:5280/http-bind/
ProxyPassReverse /http-bind/ http://localhost:5280/http-bind/
:
</VirtualHost>
In the generated httpd.conf file, i can see the following lines::
<IfDefine MOD_WSGI_WITH_PROXY>
<IfModule !proxy_module>
LoadModule proxy_module ${MOD_WSGI_MODULES_DIRECTORY}/mod_proxy.so
</IfModule>
<IfModule !proxy_http_module>
LoadModule proxy_http_module ${MOD_WSGI_MODULES_DIRECTORY}/mod_proxy_http.so
</IfModule>
</IfDefine>
:
On 7 Oct 2016, at 7:59 PM, peter hoth <hoth....@gmail.com> wrote:Hi,
I managed to install both mod_wsgi-express and mod_wsgi_httpd and get my site working by calling mod_wsgi-express with the standard parameters to generate the httpd.conf file.
Now, i have implemented a xmpp server and would like to incorporate it into my site. The requirements are that i need to install the proxy module and add the following lines to the apache config file.sudo a2enmod proxy sudo a2enmod proxy_http
Add to apache config file:
<VirtualHost *:443>
ServerName mywebapp.com
:
ProxyPass /http-bind/ http://localhost:5280/http-bind/
ProxyPassReverse /http-bind/ http://localhost:5280/http-bind/
:
</VirtualHost>In the generated httpd.conf file, i can see the following lines:
:
<IfDefine MOD_WSGI_WITH_PROXY>
<IfModule !proxy_module>
LoadModule proxy_module ${MOD_WSGI_MODULES_DIRECTORY}/mod_proxy.so
</IfModule>
<IfModule !proxy_http_module>
LoadModule proxy_http_module ${MOD_WSGI_MODULES_DIRECTORY}/mod_proxy_http.so
</IfModule>
</IfDefine>
:
Q1. What parameters should i pass to mod_wsgi-express to get it to configure the httpd.conf to include the modules ?
Q2. Can I use mod_wsgi-express to help me to add in the proxy lines or do i need to manually go through the <IfDefine> lines in the generated httpd.conf to see where to add in the lines ?
On 7 Oct 2016, at 10:37 PM, peter hoth <hoth....@gmail.com> wrote:Hi Graham,
1. I have disabled the Apache that comes with the system and i am using the Apache instance installed with the mod_wsgi_httpd
2. I am currently using the Apache instance with the configuration generated by the mod_wsgi-express and it is currently running.
3. I have installed a running XMPP server in the same machine and i have manually configured the apachectl and httpd files (both created by the mod_wsgi_httpd and mod_wsgi-express and not the system Apache files)
a. I manually appended "-DMOD_WSGI_WITH_PROXY" to the end of the line "HTTPD_ARGS" in the apachectl file
b. I manually inserted the lines to the mod_wsgi-express generated file httpd.conf
:
ProxyPass /http-bind/ http://localhost:5280/http-bind/
ProxyPassReverse /http-bind/ http://localhost:5280/http-bind/
:
4. I am wondering if based on the required changes, is it possible that I use mod_wsgi-express to make the changes for me by simply passing parameters to it.
--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To post to this group, send email to mod...@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
On 8 Oct 2016, at 12:08 AM, peter hoth <hoth....@gmail.com> wrote:
I am using CentOS 6.8 which comes with Apache 2.2 and i was having trouble getting it to work with mod_wsgi that i decided to install mod_wsgi_httpd with mod_wsgi-express following the steps from the web. Anyway, the Apache instance from mod_httpd is of version 2.4 which i assume should be better.
As i am not an expert on configuring httpd.conf, I use the mod_wsgi-express setup-server with parameters to generate the httpd.conf file and use the apachectl start to start the server.