Apache/2.4.18 (Ubuntu) mod_proxy_wstunnel - apache

I'm trying to use the Websocket Proxy in Apache, but keeps reporting non existent module.
$ sudo a2enmod mod_proxy_wstunnel
ERROR: Module mod_proxy_wstunnel does not exist!
This should be available from 2.4.5!
https://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html
Is this an Ubuntu version problem?
How can I install this?

Try with proxy_wstunnel
$ sudo a2enmod proxy_wstunnel

Related

How to use httpd command instead of apache2 on Ubuntu?

Is there a way to create httpd as an alias on Ubuntu that points to apache2? I'd like to be able to use the systemctl reload httpd and systemctl reload apache2 commands interchangeably, since I often use both CentOS and Ubuntu.

Can't start XAMPP web server after Apache2 started

I'm using Ubuntu 20.04, I have Apache2 web server installed (it uses 80 for HTTP and 443 for HTTPS) and I also have XAMPP installed (Apache web server running on 8012 for HTTP and 4431 for HTTPS). So the question is, why if I do
$ sudo ./lampp start
$ sudo systemctl start apache2
everything is fine and both web servers start. But if I do
$ sudo systemctl start apache2
$ sudo ./lampp start
the XAMPP web server does not start?
This question is similar to this one, but in the answers there is no explaination about why this happens.

Invalid Command 'RewriteEngine' but mod_rewrite is enabled

I am setting up a gitlab site with this conf file
But this error arise:
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
I have install apache 2.4.20 from source. And forgot that I have installed 2.4.7 with apt-get. Right now apache -v shows 2.4.7 though.
I have followed a lot of solutions but they do not work:
Inside the httpd.conf file uncomment the line LoadModule rewrite_module modules/mod_rewrite.so (remove the pound '#' sign from in front of the line)
Apache2 ProxyPass for Rails App Gitlab
I have check the rewrite modules and it is there; a2enmod rewrite is enabled and service apache2 restart worked without the gitlab.conf file.
But with gitlab.conf, this error appear Invalid command 'RewriteEngine'?
I am having the same issue using Vagrant to setup a VM.
I finally resolved this by setting the ip for the client in the Vagrantfile configs:
config.vm.network :private_network, ip: "192.168.68.8"
Then adding to the local /etc/hosts file:
192.168.68.8 namespace.dev

Apache Reverse Proxy

I am trying to build a reverse proxy to front end some virtual desktops that are running VMware View direct connect. I want users to be able to type https://server/desktop1, or https://server/desktop2, based on the path then it needs to reverse proxy to the right IP address. I have tried numerous rules, with really no luck.
Currently the server is running apache 2.4 and Ubuntu Server 14.
inside your VirtualHost you should write the followings:
ProxyPass /desktop1 http://ip.of.desktop.1/
ProxyPassReverse /desktop1 http://ip.of.desktop.1/
ProxyPass /desktop2 http://ip.of.desktop.2/
ProxyPassReverse /desktop2 http://ip.of.desktop.2/
You have also to make sure that you installed and enabled needed modules
aptitude install -y libapache2-mod-proxy-html
a2enmod proxy
a2enmod proxy_http
a2enmod rewrite
a2enmod deflate
a2enmod headers
a2enmod proxy_connect
a2enmod proxy_html
then restart apache2 and check...

How do I configure SSL on Apache on Ubuntu?

I tried to enable SSL on my Apache server on Ubuntu, but when I restart the Apache server it shows the following error:
Syntax error on line 3 of /etc/apache2/sites-enabled/000-default:
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
That is complaining about mod_rewrite not your ssl cert.
Try
sudo a2enmod rewrite
sudo service apache2 restart