Vely logo install examples
documentation about

14.2.0 released on Nov 29, 2022

Connect apache unix socket


This shows how to connect your application listening on a Unix socket (started with vf) to Apache web server.

Step 1:
To setup Apache as a reverse proxy and connect your application to it, you need to enable FastCGI proxy support, which generally means "proxy" and "proxy_fcgi" modules - this is done only once:
Step 2:
Edit the Apache configuration file:
Add this to the end of file ("/<app path>" is the application path (see request_URL) and "<app name>" is your application name):

ProxyPass "/<app path>" unix:///var/lib/vv/<app name>/sock/sock|fcgi://localhost/<app name>

Step 3:
Finally, restart Apache. On Debian systems (like Ubuntu) or OpenSUSE:

sudo systemctl restart apache2

On Fedora systems (like RedHat) and Arch Linux:

sudo systemctl restart httpd


Web servers ( connect_apache_tcp_socket   connect_apache_unix_socket   connect_nginx_tcp_socket   connect_nginx_unix_socket  )  SEE ALL (documentation)

Copyright (c) 2022 DaSoftver LLC. Vely is a trademark of Dasoftver LLC. The software and information herein are provided "AS IS" and without any warranties or guarantees of any kind. Some icons copyright PaweĊ‚ Kuna licensed under MIT. Vely elephant logo copyright DaSoftver LLC. This web page is licensed under CC-BY-SA-4.0.