1 |
Hello, |
2 |
|
3 |
I'm trying to setup a reverse proxy on my apache2 server to serve an |
4 |
another apache2 server running on a vm, basically my root apache2 is at |
5 |
192.168.0.15 and my second apache2 is at 192.168.0.15:8280. |
6 |
My idea is to have 192.168.0.15/zm as 192.168.0.15:8280. |
7 |
|
8 |
The question is, how to do it? |
9 |
I've looked up some guides, but it is difficult to setup. |
10 |
|
11 |
My config: |
12 |
|
13 |
<IfModule mod_ssl.c> |
14 |
<VirtualHost _default_:443> |
15 |
ServerAdmin root@192.168.0.15 |
16 |
ServerName 192.168.0.15 |
17 |
DocumentRoot /var/www/html |
18 |
ErrorLog ${APACHE_LOG_DIR}/error.log |
19 |
CustomLog ${APACHE_LOG_DIR}/access.log combined |
20 |
SSLEngine on |
21 |
SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt |
22 |
SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key |
23 |
<FilesMatch "\.(cgi|shtml|phtml|php)$"> |
24 |
SSLOptions +StdEnvVars |
25 |
</FilesMatch> |
26 |
<Directory /usr/lib/cgi-bin> |
27 |
SSLOptions +StdEnvVars |
28 |
</Directory> |
29 |
</VirtualHost> |
30 |
|
31 |
<VirtualHost *:443> |
32 |
ServerName 192.168.0.15/zm |
33 |
ServerAlias zm |
34 |
ErrorLog ${APACHE_LOG_DIR}/error.log |
35 |
CustomLog ${APACHE_LOG_DIR}/access.log combined |
36 |
ProxyPass /zm http://192.168.0.15:8280/zm |
37 |
ProxyPassReverse /zm http://192.168.0.15:8280/zm |
38 |
SSLEngine On |
39 |
SSLProxyEngine On |
40 |
SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt |
41 |
SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key |
42 |
</VirtualHost> |
43 |
</IfModule> |
44 |
|
45 |
Does it look any good? |
46 |
|
47 |
Thanks. |
48 |
|
49 |
M.S. Raphael Mejias Dias |
50 |
Nuclear Engineer | Reactors |
51 |
|
52 |
Secure e-mail: raphael.mejias.dias@××××××××××.com |
53 |
PGP Key for raphaxx@×××××.com: |
54 |
https://pgp.mit.edu/pks/lookup?op=get&search=0x87BC5A746072F951 |